Last post Jan 23, 2006 10:01 PM by ScottGu
Jan 17, 2006 09:23 AM|cdeck|LINK
I created web application with C# with VS2003 successfully. Now I pulled the solution to VS2005.
But a build error appears as " It is an error to use a section registred as allowDefinition = " Machine to application" beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS". The error occrurs
with in the authentication tag in web.config.
I have confiremed that the virtual directory is configurated as an application through virtual directory properties.
Can some one help on this issue?
Jan 23, 2006 06:44 PM|Baiju|LINK
Can you make sure you donot have any backed up website files in the sub folders?
Jan 23, 2006 10:01 PM|ScottGu|LINK
Usually when I've seen this error, it is because the web project is being opened as a file-system based web as opposed to an IIS web (and there are sub-applications below it).
This blog post explains how to work with IIS based webs more, and how to open them in VS 2005:
Hope this helps,