Vijayakumar JR
Vijayakumar JR

Reputation: 9

Delete verb not working in IIS 8 windows 2012 R2

Larvel website hosted on Windows server 2012 R2 but I am not able to delete Attachments in the website.

Please refer screenshot now
Error message 
Request URL:http://13.232.72.80/api/delete-form-data/form-field/33
Request method:DELETE
Remote address:13.232.72.80:80
Status code:
405
Version:HTTP/1.1
Referrer Policy:no-referrer-when-downgrade

image

Upvotes: 0

Views: 225

Answers (1)

Brando Zhang
Brando Zhang

Reputation: 28422

Do you want to call asp.net web api with delete method?

If this is your requirement, I suggest you could try below solution to solve this issue.

1.Open your IIS manager and locate the web sites and find the hanlder mapping. Find ExtensionlessUrlHandler-Integrated-4.0, double click it. Click Request Restrictions... button and on Verbs tab, add both DELETE.

enter image description here

2.Remove the WebDAVModule for your web application.

<system.webServer>
  <modules>
    <remove name="WebDAVModule" />
  </modules>
  <handlers>
    <remove name="WebDAV" />
  </handlers>
</system.webServer>

Upvotes: 0

Related Questions