Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
818 views
in Technique[技术] by (71.8m points)

single page application - HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory

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

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

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

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

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

Can anyone help fix this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

1.Open up IIS Manager.

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

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

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

  1. Click on "Actions" work space and change the "Disable" state to "Enable" state.

6.Then Refresh the Default Website.

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

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

 <system.webServer>

    <directoryBrowse enabled="true" />

 </system.webServer>

9.Now run and see the error will disappear.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...