Tim Huffam

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

  Home  |   Contact  |   Syndication    |   Login
  129 Posts | 0 Stories | 874 Comments | 677 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

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 05, 2006 12:07 PM

Feedback

# re: ASP.NET error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level 5/30/2008 11:42 PM Sajain Geevar
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?

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 7 and 1 and type the answer here: