iis 7.5 - ASP.NET Web API returns 404 for PUT only on some servers -
(cross post server fault. realised afterwards should have asked on stackoverflow first)
ok, have been racking brain , internet solution this. can't figure out.
i have written site uses asp.net mvc web api , working nicely until put on staging server. site works fine on local machine , dev web server. both dev , staging servers win server 2008 r2.
the problem this: site works, there api calls use http put method. these fail on staging returning 404, work fine elsewhere.
the first problem came across , fixed in request filtering. still getting 404.
i have turned on tracing in iis , following problem.
168. -module_set_response_error_status modulename iis web core notification 16 httpstatus 404 httpreason not found httpsubstatus 0 errorcode 2147942402 configexceptioninfo notification map_request_handler errorcode system cannot find file specified. (0x80070002)
the configs same on dev , staging, matter of fact whole site direct copy.
why gets , posts work, not puts?
thanks
greg
those iis servers have web-dav module installed on them , bet not needed , installed because person installing ticked boxes.
just remove web-dav iis.
alternatively use web.config remove web dav module:
<system.webserver> <modules> <remove name="webdavmodule" /> </modules> ...
Comments
Post a Comment