我也在为此而苦苦挣扎。幸运的是,史蒂夫·米歇洛蒂(Steve Michelotti)在这里记录了一个对我有用的解决方案。
最终,我在Web配置中为ExtensionlessUrlHandler-Integrated-4.0处理程序启用了所有动词(verb =“ *”)。
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
</system.webServer>
其他人指出,启用WebDAV会导致问题。幸运的是,我也没有遇到这个问题。