IIS站点中资源无法下载
HTTP 错误 405.0 - Method Not Allowed
无法显示您正在查找的页面,因为使用了无效方法(HTTP 谓词)。
模块 WebDAVModule
通知 MapRequestHandler
处理程序 ExtensionlessUrlHandler-Integrated-4.0
错误代码 0x00000000

虽然我们做了正确的配置,但是无济于事,还是被拦截
但是我们应该注意,错误提示的,拦截模块是:WebDAVModule
移除WebDAVModule

IIS搭建的站点有问题无法访问静态上传的文件时在对应的目录下增加可读取的web.conf文件,文件内容:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
<handlers accessPolicy="Script,Read">
<!-- For any request to a file exists on disk, return it via native http module. AccessPolicy="Script" above is to allow for a managed 404 page. -->
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
</handlers>
</system.webServer>
</configuration>
浙公网安备 33010602011771号