PATIL DADA PATIL DADA - 6 days ago 6
ASP.NET (C#) Question

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

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

Answer

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

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
Comments