阅文时长 | | 0.76分钟 | 字数统计 | | 1231.2字符 |
主要内容 | | 1、引言&背景 2、解决方案 3、声明与参考资料 | ||
『.Net异常:The Web server is configured to not list the contents of this directory.』 | |||
编写人 | | SCscHero |
Net异常:The Web server is configured to not list the contents of this directory.
当修改了Visual Studio的IIS Express App URL设置后,Swagger路由无法正常使用,出现'The Web server is configured to not list the contents of this directory'异常。此问题可能是由于VS或IIS的配置错误导致。解决方案是删除项目的.vsconfigapplicationhost.config文件,重启项目即可恢复正常。该问题常见于使用Visual Studio进行IIS启动方式的.NET应用程序开发中。
摘要由CSDN通过智能技术生成