Finishing HTTP PUT and DELETE requests fail after you deploy the ASP. NET MVC Web Api under IIS 6.0

Source: Internet
Author: User

http://guodong.me/?p=1560

ASP. NET MVC 4 has a new feature called WebAPI which makes it much easier to create a REST API in ASP. Unfortunately, I ran into one problem with IIS 6.0 that prevented the full REST spec from being used. By default, IIS 6 wouldn ' t allow the PUT or DELETE verbs to being used with the WebAPI app, that we created.

Page requests using GET and POST worked fine, but PUT and DELETE gave the following error:

Failed to load Resource:the Server responded with a status of 501 (not implemented)

In order to solve the issue I needed to add the ASP. 4.0 DLL to the Wildcard mappings in the "Configuration area" on the Home Directory tab for the website. That fixed the problem for me. Here is the steps that I took to correct the issue in IIS.

1. Find the Web site in the ' Web Sites ' folder in Internet information Services (IIS) and right-click and select Propertie S.


2. Go to the "Home Directory" tab and click the "Configuration ..." button.

3. Find the. aspx extension in the "Application Extensions" table, select it and press the "Edit ..." button.

4. Copy the entire path and file name in the ' Executable: ' text box to the Clipboard. Press the "Cancel" button.

5. Press the "Insert ..." button near the "Wildcard Application Maps" list box. Paste the text from the Clipboard into the "Executable:" text box and press "OK".

6. Press OK on the application Configuration dialog and again on the website properties box.

Finishing HTTP PUT and DELETE requests fail after you deploy the ASP. NET MVC Web Api under IIS 6.0

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.