Web服务器配置为不列出此目录的内容。 ASP.NET VS 2012的错误? [英] The Web server is configured to not list the contents of this directory. asp.net vs 2012 error?

查看:210
本文介绍了Web服务器配置为不列出此目录的内容。 ASP.NET VS 2012的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

得到了以下错误:

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

这是怎么链接的CSS文件。

this is how I linked css file.

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

我使用母版页第一次。我没有在ISS服务器添加母版页。
我启用的目录在我的ISS 8.0设置

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

推荐答案

你有没有尝试设置你的web.config文件中的以下内容:

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

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

这篇关于Web服务器配置为不列出此目录的内容。 ASP.NET VS 2012的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆