喜我要发布的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 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
发布评论