ASP.NET MVC3在IIS 7.5 [英] ASP.NET MVC3 In IIS 7.5

查看:363
本文介绍了ASP.NET MVC3在IIS 7.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我要发布的Windows Server 2008 R2 SP1的MVC 3点。我安装了MVC 3和MVC 2。当我创建了一个MVC 2的网站,它工作得很好,但MVC 3网站没有工作。我安装了MVC 3第一,当网站没有工作,我安装了MVC 2和测试的其他(MVC 2)网站,每一件事情是确定的。问题是MVC 3。

Hi I want to publish an MVC 3 site in Windows Server 2008 R2 SP1. I installed MVC 3 and MVC 2. When I created an MVC 2 site, it worked fine but the MVC 3 site did not work. I installed MVC 3 first and when the site did not work, I installed MVC 2 and tested the other (MVC 2) site and every thing was ok. The problems is MVC 3.

任何帮助请
以下是错误:

ANY HELP PLEASE Here is the error:

错误摘要
HTTP错误403.14 - 禁止
Web服务器配置为不列出此目录的内容。
详细的错误信息
模块DirectoryListingModule
通知ExecuteRequestHandler
处理程序StaticFile
错误code 00000000
请求的URL 的https://mywebsite.test.own:443 /
物理路径D:\\网页
登录方法匿名
登录用户匿名
最可能的原因:

Error Summary HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. Detailed Error Information Module DirectoryListingModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x00000000 Requested URL https://mywebsite.test.own:443/ Physical Path D:\WebSite Logon Method Anonymous Logon User Anonymous Most likely causes:

A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

可尝试的:

If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
Enable directory browsing using IIS Manager.
    Open IIS Manager.
    In the Features view, double-click Directory Browsing.
    On the Directory Browsing page, in the Actions pane, click Enable.
Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.

链接和更多信息时,在URL中未指定文件时出现此错误,为Web站点或应用程序指定默认文档,目录列表没有为网站或应用程序启用。此设置可以在目的被禁用,以保护服务器的内容。

Links and More Information This error occurs when a document is not specified in the URL, no default document is specified for the Web site or application, and directory listing is not enabled for the Web site or application. This setting may be disabled on purpose to secure the contents of the server.

查看更多信息»

推荐答案

有关ASP.NET MVC 3.0 IIS 7.5的Windows Server 2008上,我发现我不得不跑为aspnet_regiis -i C:\\ WINDOWS \\ Microsoft.NET \\框架\\<&版GT; 文件夹中。这解决了这个问题。

For ASP.NET MVC 3.0 on IIS 7.5 Windows Server 2008, I found that I had to run aspnet_regiis -i from the C:\Windows\Microsoft.NET\Framework\<version> folder. This resolved the problem.

这篇关于ASP.NET MVC3在IIS 7.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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