What I'm doing SHOULD be simple. In IIS6 I could just go to Properties on the Web Site and Create/Remove the application status from it. However, I cannot for the life of me figure out how to convert the Web Site itself (not virtual directories under it) an application!
Ultimately, my problem is in using the Publish feature from Visual Studio 2010 as it gives me this 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.
I'm assuming this is because the web site is not configured to be an application.
If I go create a Virtual Directory under my Web Site and promote it to an application (via right-clicking on it and selecting Convert to Application
), then all is fine. But I simply cannot figure out how to do that to a Web Site itself and I need to do that because I need this MVC2 site hosted at www.domain.com/
rather than www.domain.com/appname/
. Am I going about this all wrong? Am I using VS2010 incorrectly or am I missing an option in IIS?