问题
does anyone have any good links/tutorials about how to create a simple ASP.NET MVC website, and have it run against a Local IIS7 Web Server, instead of the default Visual Studio Development Server (aka Cassini).
Yes, i tried google, but i fail at getting some good keywords, etc.
Cheers :)
回答1:
Here are my steps: In IIS, Sites -> Add Web Site...
- Fill in the name, whatever you want.
- Set the physical path where your app is located.
- In the Host Name option, type for example local.test.com
- Hit OK
Then I update the hosts file located in $windir$\System32\drivers\etc Adding the line
127.0.0.1 local.test.com
Don´t forget changing in the application pool of the created website the framework version.
I´m sure there must be other ways, I just follow this steps every time I want to create a new site in my local IIS and it works.
Good luck!
来源:https://stackoverflow.com/questions/2469555/any-tutorials-about-how-to-create-an-asp-net-mvc-2-website-and-run-it-against-lo