在web.config中加:
<modules runAllManagedModulesForAllRequests="true"/>
IIS出现HTTP 错误 403.14 -Forbidden的解决方法
https://jingyan.baidu.com/article/2fb0ba406ddb7041f3ec5f09.html
通过文档搜索,搜索应用主配置文件applicationhost.config,并通过文字搜索,检查文档中的浏览目录选项,确保设置成true,即
<directoryBrowse enabled =“true”/>
```。
在项目配置文件web.config里添加
```html
<directoryBrowse enabled="true" />
```,放在
```html
<system.webServer></system.webServer>
```标签里。
不太全面,可能需要看代码来排查