Reputation: 1712
I have delete Endpoint when the user sends a request it returns 401 on test server .it works fine on local
401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied
update I tried to give the folder all permission but no used
Upvotes: 2
Views: 1810
Reputation: 1712
this how we fixed it
<modules>
<remove name="WebDAVModule"/>
</modules>
<handlers>
<remove name="WebDAV" />
<remove name="ExtensionlessUrl-Integrated-4.0" />
<add name="ExtensionlessUrl-Integrated-4.0"
path="*"
verb="*"
type="System.Web.Handlers.TransferRequestHandler"
preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<security>
<requestFiltering>
<verbs>
<add verb="DELETE" allowed="true" />
<add verb="PUT" allowed="true" />
</verbs>
</requestFiltering>
</security>
Upvotes: 3
Reputation: 15005
I think you should enable DELETE
verb on IIS by removing WebDAV
add this lines on your web.config
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
</handlers>
Upvotes: 1