HTTP 错误 403.14 - Forbidden Web 服务器配置为不列出内容 [英] HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents

查看:34
本文介绍了HTTP 错误 403.14 - Forbidden Web 服务器配置为不列出内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 C:UsersDEVESHDesktopProjectsMvcMusicStore-v3.0MvcMusicStore-CompletedMvcMusicStore 下载了 MVC Music Store ASP.NET 应用程序并在同一位置在 IIS 上添加了该网站.我还授予了 IIS_IUSRS 的权限,但是当我运行 localhost 时出现错误:

I have downloaded the MVC Music Store ASP.NET application at location C:UsersDEVESHDesktopProjectsMvcMusicStore-v3.0MvcMusicStore-CompletedMvcMusicStore and added the website on IIS at the same location. I have also given permission to IIS_IUSRS, but when I run localhost I am getting the error:

HTTP 错误 403.14 - 禁止 Web 服务器配置为不列出此目录的内容.

我用谷歌搜索过,但没有找到解决办法.我做错了什么?

I have googled it, but have not found a fix. What I am doing wrong?

推荐答案

我遇到此错误是因为我在网站应用程序池上配置了错误的 .NET 版本(v2.0 而不是 v4.0).我在 Windows Server 2008 R2 和 IIS 7 上以这种方式修复了它.我很确定这些说明也适用于 Windows Server 2012 和 IIS 8:

I came across this error because I had the wrong .NET version (v2.0 instead of v4.0) configured on the web site application pool. I fixed it this way on Windows Server 2008 R2 and IIS 7. I'm pretty sure the instructions apply to Windows Server 2012 and IIS 8 as well:

  • Windows+R键打开运行"对话框,输入inetmgr,然后单击确定".这将打开 IIS 管理器.
  • 在左侧树视图中,找到站点节点并在其下找到默认网站节点(或出现错误消息的站点的名称).
  • 右键单击节点并选择管理网站 -> 高级设置....请注意值应用程序池的名称.关闭此对话框.
  • 在左侧的树视图中,找到并选择节点应用程序池.
  • 在右侧的列表中,找到与您在网站设置中记下的名称相同的应用程序池.右键单击它并选择高级设置...
  • 确保 .NET Framework 版本 值为 v4.0.点击确定.
  • Press keys Windows+R to open the Run dialog, type inetmgr and then click OK. This opens the IIS Manager.
  • In the left treeview, locate the Sites node and find the Default Web Site node under it (or the name of the site where the error message appears).
  • Right-click the node and select Manage web site -> Advanced settings.... Note the name of the value Application pool. Close this dialog.
  • In the treeview to the left, locate and select the node Application pools.
  • In the list to the right, locate the Application pool with the same name as the one you noted in the web site settings. Right-click it and select Advanced settings...
  • Make sure that the .NET Framework version value is v4.0. Click OK.

当然,如果您运行的是旧站点,而该站点实际上应该具有 .NET v2.0,则这不适用:)

This doesn't apply if you're running an older site that actually should have .NET v2.0, of course :)

这篇关于HTTP 错误 403.14 - Forbidden Web 服务器配置为不列出内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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