WebApi PUT and DELETE access type error

* method one

Adding Web.Config file project

modules>

        <remove name="WebDAVModule" />

</modules>

<handlers>

      <remove name="WebDAV" />

      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />

      <remove name="OPTIONSVerbHandler" />

      <remove name="TRACEVerbHandler" />

      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>

 

* Method Two

IIS find the corresponding site opens in WebDAV handler mapping - request limit - predicate

All predicates may be selected below or add the corresponding predicate

PROPFIND,PROPPATCH,MKCOL,PUT,COPY,DELETE,MOVE,LOCK,UNLOCK

PROPFIND,PROPPATCH,MKCOL,COPY,MOVE,LOCK,UNLOCK,PUT,DELETE,GET,POST

Then OK to save.

Guess you like

Origin www.cnblogs.com/zerosymbol/p/11536192.html