IIS 5 & IIS 6
IIS error, Please help me
Last post Jan 20, 2009 09:11 AM by Leo Tang - MSFT
Jan 16, 2009 08:23 AM|glpraveenkumar|LINK
I am using VS2005, Due to some security policies in my organisation, I dont have IIS on my machine. I had copied the code from other machine and tried to complie the application. Its giving me the below 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. "
Please help me out.......
Jan 16, 2009 09:06 AM|Rovastar|LINK
Err you will need to make the virtual directory an applciation in IIS. Speak to your IIS admin.
Jan 20, 2009 09:11 AM|Leo Tang - MSFT|LINK
This issure is most possible caused by the settings in the web.config file under the subdirectory of your website/solution.
MachineToApplication defined the scope of a configuration section. For example, the authentication element has an allowDefinition attribute of the MachineToApplication element(you
can find this in the machine.config file). This means that the authentication element can be set in the Machine.config file, the root Web.config file, and a Web.config file at the application level. If it is set at the subdirectory level, an error is thrown.
You can double-click the error in the error list to find the element which should not be set in the subdirectory. And you need to modify your web.config file in order to apply to your scenario.