Whenever I open any project in ASP.Net. I got the following error :
Error : 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. D:\raju1\NestedGridViewPlusMinus\NestedGridViewPlusMinus\NestedGridViewPlusMinus\Web.config 21
Anyone who know what is wrong with ASP.Net . Please reply.
Thanks
Blocked AccountPosted Aug 11, 2008, 7:30 AM
This error can be caused by a virtual directory not being configured as an application in IIS.
However, this error occurs when you create an new web application using visual studio.net, it automatically creates the virtual directory and configures it as an application. However, if you manually create the virtual directory and it is not configured as an application, then you will not be able to browse the application and may get the above error. The debug information you get as mentioned above, is applicable to this scenario.
To resolve it, Right Click on the virtual directory - select properties and then click on
"Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed.
Happy Coding!!