Reference answer 1 (invalid)
<system.webServer>
<security>
<requestFiltering>
<verbs allowUnlisted="false">
<add verb="GET" allowed="true" />
<add verb="POST" allowed="true" />
<add verb="DELETE" allowed="true" />
<add verb="PUT" allowed="true" />
<add verb="OPTIONS" allowed="true" />
<add verb="TRACE" allowed="true" />
</verbs>
</requestFiltering>
</security>
</system.webServer>
Reference answer 2 (invalid)
<system.webServer>
<handlers>
<remove name="WebDAV" />
<remove name="OPTIONSVerbHandler" />
<remove name="TRACEVerbHandler" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<modules>
<remove name="WebDAVModule" />
</modules>
</system.webServer>
Using. Net 4.0 asp.net technology, no “webdavmodule” module was found
Correct answer
It is obvious that the error of ashx message is called to modify the handler of mapping “. Ashx” file, so the following items are found
Each of them should be revised
Or modify the web.config system.webserver configuration section:
<system.webServer>
<handlers>
<remove name="SimpleHandlerFactory-ISAPI-2.0-64" />
<remove name="SimpleHandlerFactory-ISAPI-2.0" />
<remove name="SimpleHandlerFactory-Integrated" />
<remove name="SimpleHandlerFactory-ISAPI-4.0_32bit" />
<remove name="SimpleHandlerFactory-Integrated-4.0" />
<remove name="SimpleHandlerFactory-ISAPI-4.0_64bit" />
<add name="SimpleHandlerFactory-ISAPI-4.0_64bit" path="*.ashx" verb="GET,HEAD,POST,DEBUG,DELETE" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG,DELETE" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="SimpleHandlerFactory-ISAPI-4.0_32bit" path="*.ashx" verb="GET,HEAD,POST,DEBUG,DELETE" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG,DELETE" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="SimpleHandlerFactory-ISAPI-2.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG,DELETE" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness32" responseBufferLimit="0" />
<add name="SimpleHandlerFactory-ISAPI-2.0-64" path="*.ashx" verb="GET,HEAD,POST,DEBUG,DELETE" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="Script" preCondition="classicMode,runtimeVersionv2.0,bitness64" responseBufferLimit="0" />
</handlers>
</system.webServer>
Solution (- V -)
Read More:
- HTTP error 405.0 – method not allowed solution for put and delete operations of rest Service on iis7.5
- Solve the problem that the delete request is not available under SpringBoot. There was an unexpected error (type=Method Not Allowed, status=405).
- HTTP 405 Error: Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
- Processing method of HTTP 411 error code
- python: HTTP Error 505: HTTP Version Not Supported
- Docker delete error response from daemon: Conflict: unable to delete xxxxx solution
- “Method does not override method from its superclass”
- [Error][IntelliJ IDEA] Element XXX is not allowed here
- Vue More than 1 blank line not allowed
- Oracle ORA-00984:column not allowed here
- Annotations are not allowed here
- ERROR 1148 (42000): The used command is not allowed with this MySQL version
- Function definition is not allowed here
- Array initializer is not allowed here
- yaml.scanner.ScannerError: mapping values are not allowed here
- hive is not allowed to impersonate anonymous
- HTTP Error 404.2 – Not Found “The page you are requesting cannot be served because of the ISAPI and
- Git push you are not allowed to upload merges
- Vue install reports an error operation not allowed
- db2 Database Error: table space access is not allowed