ASP.NET MVC3在IIS 7.5

编程入门 行业动态 更新时间:2024-10-27 02:28:39
本文介绍了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 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

本文发布于:2023-11-12 04:48:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580549.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:NET   ASP   IIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!