Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T.

The following error occurred when I tried to run a ASP.NET app that had just been converted from .NET 1.1 to .NET 2.0 (using the VS2005 wizard):

An error occurred creating the configuration section handler for DrKW.Directory.WebService: Could not load file or assembly 'DrKW.Directory.WebService' or one of its dependencies. The system cannot find the file specified.

The problem is exactly as the error message states - "The system cannot find the specified file".

My section element within configSections (in the web.config file) was:

<section name="DrKW.Directory.WebService" type="DrKW.Directory.WebService.ConfigSectionHandler, DrKW.Directory.WebService"/>

And the original (ASP.NET 1.1) project had an assembly name of DrKW.Directory.WebService.   And this was causing the problem - because ASP.NET 2.0 does not create an assembly dll for the web app.

To work around this, I just simply removed the assembly name from the type value eg:

<section name="DrKW.Directory.WebService" type="DrKW.Directory.WebService.ConfigSectionHandler"/>

HTH
Tim

Posted on Tuesday, September 5, 2006 12:16 PM C# .NET , ASP.NET | Back to top


Comments on this post: ASP.NET error: An error occurred creating the configuration section handler for DrKW.Directory.WebService: Could not load file or assembly 'DrKW.Directory.WebService' or one of its dependencies

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net