I created the MVC website using Visual Studio 2010 and would like to deploy it to my newly installed local IIS7. The website runs fine from Visual Studio on the development server in which it comes.
Here are the steps I took:
1) Open IIS7 dispatcher.
2) In the Sites section, a new site called Foo has been created.
- I used DefaultAppPool, which is installed in .net4
- I created an empty directory and used it as the default path
- I set the port to 54321
3) Then, in Visual Studio, I used the publish button with local IIS, and the site was installed as Foo.
IIS Manager now displays the following sites:
Foo bin content scripts views
When I go to localhost: 54321 I am given a message stating that it cannot list the directory. If I put the index.html file in this directory, it will run the file as expected. Something is probably missing me here. I published my site in this directory. When I go to localhost: 54321, I expected it to start the index of the home controller, but it just tries to list the directory.
Found the answer here: ASP.NET MVC on IIS 7.5
I can not answer my question, because I have less than 100 points :)
source share