5

I'm doing a iCal Service to allow sync between Calendar instances and runs fantastic on localhost (under VS2010 Web Server)

But now That I hosted on a Windows 2008 R2 (IIS 7.5.7600) I couldn't create not even update an event :-o

Thunderbird always said

alt text

So I rush into Fiddler and found out the problem

alt text

a 405 error

alt text

That says PUT is not allowed :(

How can I enabled this method? Application Pool? WebSite definition? IIS Settings?

balexandre
  • 73,608
  • 45
  • 233
  • 342

2 Answers2

5

We just need to remove the WebDav Service

Control Panel > Program and Features > Turn Windows features on or off

alt text

then navigate to Server Manager > Roles > Web Server (IIS) and wait until Roles Services come up.

Then Remove Role Service and Remove WebDAV Publishing

alt text

You need to restart the Server to finalize this action.

I hope it helps someone

balexandre
  • 73,608
  • 45
  • 233
  • 342
1

You can do it from configuration file.

<system.webServer>
<handlers>
<remove name="WebDAV" />
      <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
      <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"
        path="*."
      verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS"
      modules="IsapiModule"
      scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll"
      preCondition="classicMode,runtimeVersionv4.0,bitness64"
      responseBufferLimit="0" />
</handlers>
</system.webServer>

Source: http://www.asp.net/web-api/overview/testing-and-debugging/troubleshooting-http-405-errors-after-publishing-web-api-applications

ndmeiri
  • 4,979
  • 12
  • 37
  • 45
Bharadwaj
  • 46
  • 2