Any tutorials about how to create an ASP.NET MVC 2 website and run it against Local IIS Web Server (not use Cassini)

谁说我不能喝 提交于 2019-12-12 04:32:28

问题


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...

  1. Fill in the name, whatever you want.
  2. Set the physical path where your app is located.
  3. In the Host Name option, type for example local.test.com
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!