Cannot use PUT verb in WCF REST service.

Discussion in 'ASP.NET WebServices' started by Hartmut Kocher, Nov 11, 2010.

  1. I have a WCF REST service (.net 4) that uses PUT verb to create resources.

    (e.g., I send a PUT request to "http://xxx.com/Services/MyService/yyy")

    The service runs on my local web server but not on DASP.
    I get the an HTTP Error 405. Somehow, a WebDAV module seems to intersect the request (although I didn't configure anything...).

    Any idea how to enable PUT to my URLs?

    Here is the details error message:

    Server Error in Application "XXX.COM"
    "server_version"><p>Internet Information Services 7.5</p>

    <fieldset><legend>Error Summary</legend>
    <h2>HTTP Error 405.0 - Method Not Allowed</h2>
    <h3>The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.</h3>
    </fieldset>
    </div>
    <div class="content-container">
    <fieldset><legend>Detailed Error Information</legend>
    <div id="details-left">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr class="alt"><th>Module</th><td>WebDAVModule</td></tr>
    <tr><th>Notification</th><td>MapRequestHandler</td></tr>
    <tr class="alt"><th>Handler</th><td>WebDAV</td></tr>
    <tr><th>Error Code</th><td>0x00000000</td></tr>
     

Share This Page