Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Web server is configured to not list the contents of this directory. asp.net vs 2012 error?

Tags:

asp.net

Got following Error:

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

this is how I linked css file.

<link rel="stylesheet" type="text/css" href="~/styles/StyleSheet.css" /> 

i am using master page for first time. i did added master page in iss server. i enabled the directory setting in my iss 8.0

like image 437
PATIL DADA Avatar asked Dec 22 '13 16:12

PATIL DADA


People also ask

How do you fix the Web server is configured to not list the contents of this directory?

To do it, select Start, select Run, type inetmgr.exe, and then select OK. In IIS Manager, expand server name, expand Web sites, and then select the website that you want to change. In the Features view, double-click Directory Browsing. In the Actions pane, select Enable.

Where is IIS Express install directory?

This file is located in the %userprofile%\Documents\IISExpress\config folder or %userprofile%\My Documents\IISExpress\config folder, depending on your OS.


1 Answers

Have you tried setting the following within your web.config file :

<system.webServer>     <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> 
like image 165
Ramesh Rajendran Avatar answered Oct 02 '22 05:10

Ramesh Rajendran