打开 http://localhost:1609 报错: HTTP 错误 403.14 - ForbiddenWeb 服务器被配置为不列出此目录的内容 解决方案一:设置默认首页在 Web.config 文件中,加上红色字体间的内容<configuration&g ...
打开 http://localhost:1609 报错:
HTTP 错误 403.14 - Forbidden
Web 服务器被配置为不列出此目录的内容
解决方案一:设置默认首页
在 Web.config 文件中,加上红色字体间的内容
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<!--设置连接字符串-->
<connectionStrings>
<add name="Mall" connectionString="server=.;database=Wen.Mall;uid=sa;pwd=123456"/>
</connectionStrings>
<!--设置连接字符串-->
<!--设置默认首页-->
<system.webServer>
<defaultDocument>
<files>
<clear/>
<add value="index.aspx"/> <!--该页为首页-->
</files>
</defaultDocument>
</system.webServer>
<!--设置默认首页-->
</configuration>
原标题:遇到 HTTP 错误 403.14
关键词:http
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。