MVC 3到部署IIS6 [英] MVC 3 Deployment to IIS6

查看:81
本文介绍了MVC 3到部署IIS6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本来,我部署了一些DLL的一套复制本地的网站(如haacked建议在另一个SO后)。在此之后失败了,我在服务器上安装MVC 3包。

Originally, I deployed the site with some of the DLL's set to copy local (as haacked suggested on another SO post). After this failed, I installed MVC 3 package on the server.

当我打我的地盘我得到:

When I hit my site I get:

拒绝目录列表此虚拟
  目录不允许的内容
  上市。

Directory Listing Denied This Virtual Directory does not allow contents to be listed.

我看到 haacked的博客,但其近3年,现在老了一些,它只是不工作了。有谁知道我们需要做的就是这,我们在服务器上安装MVC 3后工作?

I saw haacked's blog, but its almost 3 years old now and some of it just doesn't work anymore. Does anyone know what we need to do to get this to work after we installed MVC 3 on the server?

更新

我发现了另一个链接在haacked的博客。显然,这应该只是工作(没有必要做通配符映射)。我的网站的虚拟目录设置为运行ASP.NET 4.0.30319,我已经安装了ASP.NET MVC 3,和我运行IIS6(在Windows Server 2003 R2,pretty肯定是IIS6)。

UPDATE
I found another link on haacked's blog. Apparently, this should just work (no need to do wildcard mappings). My website virtual directory is set to run ASP.NET 4.0.30319, I have installed ASP.NET MVC 3, and I am running IIS6 (windows server 2003 R2, Pretty sure that is IIS6).

推荐答案

虚拟目录设置为ASP.NET 4.0。同时,在默认Web站点被设置为运行ASP.NET 2.0。我改变了默认Web站点,以除的virt运行4.0。目录并开始工作。原因是一个谜给我,但它的工作。

The Virtual Directory was set to ASP.NET 4.0. While, the "Default Web Site" was set to run ASP.NET 2.0. I changed the "Default Web Site" to run 4.0 in addition to the virt. directory and it started working. The reason is a mystery to me, but it worked.

这篇关于MVC 3到部署IIS6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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