任何有关如何创建ASP.NET MVC 2网站并针对本地IIS Web服务器(不使用Cassini)运行的教程) [英] Any tutorials about how to create an ASP.NET MVC 2 website and run it against Local IIS Web Server (not use Cassini)

查看:131
本文介绍了任何有关如何创建ASP.NET MVC 2网站并针对本地IIS Web服务器(不使用Cassini)运行的教程)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都有任何关于如何创建一个简单的ASP.NET MVC网站的任何良好的链接/教程,并使其运行本地IIS7 Web服务器,而不是默认的Visual Studio开发服务器(又名卡西尼)。



是的,我尝试了谷歌,但我没有得到一些好的关键字等。



干杯:)

解决方案

这是我的步骤:
在IIS,站点 - >添加网站...


  1. 填写所需的名称。

  2. 设置应用所在的物理路径。

  3. 在主机名称选项中,键入local.test.com

  4. 点击OK

然后我更新位于$ windir $ \System32\drivers\etc
中的主机文件添加行



127.0.0.1 local.test.com



不要忘记在创建的网站的应用程序池中更改框架版本。



我确定必须有其他方式,我只需按照这一步骤,每次我想在我的本地IIS创建一个新的网站,它的工作。



祝你好运!


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 :)

解决方案

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!

这篇关于任何有关如何创建ASP.NET MVC 2网站并针对本地IIS Web服务器(不使用Cassini)运行的教程)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆