Geeks With Blogs

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

The following error occured because a web.config file existed, in a directory beneath my main app root dir, should not have been there:

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. C:\Dev\SVN\authenticationservice\authenticationservice\aspnet_webadmin\2_0_50110\web.config 

It is actually valid to have a web.config in a dir beneath your app root dir, but you need to make sure allowDefinition is configured correctly.  In my case, however, this file should not have been there - so to fix the problem I just deleted it.

HTH
Tim

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


Comments on this post: ASP.NET error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level

# re: ASP.NET error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level
Requesting Gravatar...
I removed the web.config but then I have problem with a missing reference. But when I try to add the reference again it is saying 'web.config' is not present in the web site directory. What to do?
Left by Sajain Geevar on May 30, 2008 11:42 PM

Your comment:
 (will show your gravatar)


Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net