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 in Others by Soham
• 8,730 points
1,887 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 by Rahul
• 8,980 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
186 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 in Others by Aditya
• 7,280 points
1,114 views
0 votes
1 answer

Where is the documentation to refer for coinbase api integration of Etherium coin currency in php?

Hey there! Please refer to the following ...READ MORE

answered Jan 25, 2019 in Others by Omkar
• 69,210 points
268 views
0 votes
0 answers

Maximum request length exceeded.

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

May 16 in Others by Kichu
• 19,040 points
37 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 in Others by Kichu
• 19,040 points
85 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
249 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 in Others by Rahul
• 8,980 points
28 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 in Others by Rahul
• 8,980 points
146 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP