Skip to main content
2 of 6
added 223 characters in body; added 98 characters in body
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60

IIS, by default, prohibits service of many file extensions, .cs is one.

So the request is being killed by IIS ASP.net before it hits the REST handlers.

This can be fixed fairly easily.

%SYSTEM%\Microsoft.NET\Framework\v2.0.50727\CONFIG\Web.Config

....
<httpHandlers>
   <add path="*.cs" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
....

And of course this is just my supposition. I am not privy to the inner workings of the SO servers.

Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60