有关如何创建 ASP.NET MVC 2 网站并针对本地 IIS Web 服务器运行它的任何教程(不使用 Cassini)

发布于 2024-08-25 14:15:06 字数 158 浏览 6 评论 0原文

有没有人有关于如何创建一个简单的 ASP.NET MVC 网站的任何好的链接/教程,并让它在本地 IIS7 Web 服务器上运行,而不是默认的 Visual Studio 开发服务器(又名 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 good keywords, etc.

Cheers :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

妄想挽回 2024-09-01 14:15:06

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

  1. 填写名称,无论您想要什么。
  2. 设置您的应用程序所在的物理路径。
  3. 在“主机名”选项中,输入例如 local.test.com
  4. 点击“确定”

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

127.0.0.1 local.test.com

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

我确信一定还有其他方法,每次我想在本地 IIS 中创建新站点时,我只需按照此步骤操作即可。

祝你好运!

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文