Any tutorials about how to create an ASP.NET MVC 2 website and run it against Local IIS Web Server (not use Cassini)
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 go开发者_开发问答od keywords, etc.
Cheers :)
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!
精彩评论