HTTP Error 403 14 - Forbidden - The Web server is configured to not list the contents of this directory

0 votes

I have been able to create a new empty website in Visual Studio 2012 and clicked on run which is also the view in browser and I get this ERROR :

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

I went into IIS and clicked on Directory browsing and then ensured that Directory browsing was enabled but I still get this error and am unable to figure this out. The website project I just created is not listed in Default web sites in IIS Manager which I thought was odd. How do I get rid of this error ?

Feb 11, 2022 in Others by Soham
• 9,710 points
12,939 views

1 answer to this question.

0 votes

Try keeping this into your web config file and then rename the add value="yourwebformname.aspx"
 

<system.webServer> 
        <defaultDocument> 
                              <files> 
                                  <add value="insertion.aspx" /> 
                              </files> 
        </defaultDocument> 
  <directoryBrowse enabled="false" /> 
</system.webServer>
Else
<system.webServer> 
        <directoryBrowse enabled="true" /> 
</system.webServer>

answered Feb 11, 2022 by Rahul
• 9,680 points

Related Questions In Others

0 votes
0 answers

how to list the contents of a asset into an event

May 29, 2019 in Others by anonymous
659 views
0 votes
1 answer

WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server

Change the file content of c:\wamp\alias\phpmyadmin.conf to ...READ MORE

answered Feb 23, 2022 in Others by Aditya
• 7,680 points
14,603 views
0 votes
0 answers

Maximum request length exceeded.

When I tried to upload a video ...READ MORE

May 16, 2022 in Others by Kichu
• 19,040 points
532 views
0 votes
0 answers

The page cannot be displayed because an internal server error has occurred on server

When  I've deployed the website I installed  ...READ MORE

May 23, 2022 in Others by Kichu
• 19,040 points
1,107 views
0 votes
1 answer

Authenticate on an ASP.Net Forms Authorization website from a console app

Essentially, we need to record a regular ...READ MORE

answered Sep 20, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
911 views
0 votes
1 answer

What is the difference between POST and PUT in HTTP?

To answer your question, both of them ...READ MORE

answered Feb 11, 2022 in Others by Rahul
• 9,680 points
762 views
0 votes
1 answer

Android Studio: Where is the Compiler Error Output Window?

While using Android Studio 3.1, please select ...READ MORE

answered Feb 11, 2022 in Others by Rahul
• 9,680 points
3,897 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP