I transformed my VS2008 ASP.NET Website to a “Web Application” today using VS2010. So now it’s possible to build a Deployment Package. A Zip Package which can be direclty imported into IIS7.
Usually I added a website in IIS7 called mydomain.com and put everything in its root dir. That worked.
However, since I converted to an Web Application, this Application is added beneath my “Website container”. Now I’m confused, this is how it actually looks now when I try to open the website:
Browsing to mydomain.com says 404 ERROR.
Browsing to mydomain.com/mydomain.com opens the actual website, but in a subfolder instead of the root directory. (The Application is named after the Domain)
How to make this application the root of the website now? I want the application to run under the mydomain.com ROOT and not some subfolder.
Thanks a lot!
In VS 2010, right click your project and go to
Package/Publish settings..In there, down below, in the
Web Deployment Package settings, there’s aIIS Web site/application namefield.It seems that it’s currently set to
mydomain.com/mydomain.comor something similar. Change it tomydomain.comand it should work as expected.Second thing to check is your Publish settings (VS menu
Build -> Publish "websitename"). Check the Site/application field. Set it tomydomain.comas well, make sure it doesn’t have any slashes.