Dec 8, 2011 at 10:27 AM
Edited Dec 8, 2011 at 11:27 PM
It doesn't matter what version of .NET or Visual Studio you are using -- it's the version of Enterprise Library that does not support the classes/methods referenced in your code.
I'm not sure when Enterprise Library 4.0 was retired. You can see it listed under retired versions at MSDN. Version 4.1 is virtually the same as 4.0 with
important bug fixes.
Your errors will not be resolved unless you use Enterprise Library 1 because the classes/methods used in your code were removed from all releases since version 2.
I'm not 100% sure what you mean by "configure version 5.0 dlls" but to use the Data Access Application Block you should reference (in Version 5):
Also, as far as I know you cannot build a .NET 2.0 application using Visual Studio 2003.
If you are truly targeting .NET 2.0 only, then according to the Enterprise Library requirements you should use
Enterprise Library 3.1 (also retired) although the documentation says it requires Visual Studio 2005.
Enterprise Library support engineer