且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MVC3发布和IIS 6

更新时间:2023-12-03 16:32:04

试试这个。

  1. 打开IIS管理器。
  2. 项目
  3. 选择您的网站,那么属性。
  4. 转到虚拟目录
  5. 点击上配置
  6. 在应用程序配置
    应用扩展 - 添加.mvc扩展名和路径 C:\ WINDOWS \ microsoft.net \框架\ v4.xxxxx \ aspnet_isapi.dll的
  7. 在通配符应用程序映射插入相同的路径与上述
  8. 取消选中验证文件是否存在(如果你选择了它不会运行)
  1. Open IIS manager.
  2. List item
  3. Select your website then properties.
  4. Go to Virtual directory
  5. Click on Configuration
  6. On Application Configuration
    Application extension - add .mvc extension and path C:\windows\microsoft.net\framework\v4.xxxxx\aspnet_isapi.dll
  7. On the wildcard application maps insert same path as above
  8. UNCHECK verify that file exists (if you check it won't run)

菲尔哈克有一个很好的文章:http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

Phil Haack has a good article: http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx