HTTP错误403.14-禁止将Web服务器配置为不列出此目录的内容 [英] HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory

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

问题描述

在Pluralsight上完成约翰·帕帕(John Papa)课程后-真是棒极了!

After finishing the John Papa course on Pluralsight- which is AWESOME by the way!!!)

我现在正在创建我的第一个SPA。我来自桌面应用程序开发人员背景,所以如果这个问题是新手,请原谅!

I'm now creating my first SPA. I come from Desktop Application Developer background so excuse me if this question is newbie!

当我加载SPA而不是看到启动屏幕,然后看到主屏幕时,收到此错误消息:

When I load the SPA instead of seeing the splash screen and then the main screen I'm getting this error message:

HTTP错误403.14-禁止将Web服务器配置为不列出此目录的内容。最可能的原因是:

HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.Most likely causes:


未为请求的URL配置默认文档,并且服务器上未启用目录浏览。

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

有人可以帮助解决此问题吗?

Can anyone help fix this?

推荐答案

1。打开IIS管理器。

1.Open up IIS Manager.

2。右键单击默认网站并选择添加应用程序添加网站。

2.Add the website by right clicking on "Default website" and choose "Add application".

3.Enter任何名称作为别名类型,然后在物理路径中加载该网站,然后单击确定。

3.Enter any name as alias type and the load that website in the physical path and click OK.

4。然后转到该已加载网站的功能视图,然后双击目录浏览。

4.Then go to the Features View of that Loaded Website and double click on the "Directory Browsing".


  1. 单击操作工作空间,然后将禁用状态更改为启用状态。

6。然后刷新默认网站。

6.Then Refresh the Default Website.

7。打开Visual Studio并转到该网站。

7.Open the Visual Studio and go to that website. it will ask for reload , then click "yes".

8。它将在web.config文件中添加以下代码。

8.it will add the following code in the web.config file.

 <system.webServer>

    <directoryBrowse enabled="true" />

 </system.webServer>

9。现在运行并看到错误会消失。

9.Now run and see the error will disappear.

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

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