c# - WEB API DELETE request causes internal server error 500 with 0 length content -


i have created microsoft web api number of controllers. on local machine (win 7, iis express) testing 1 of controllers works fine. can delete "make" object id 1 using request localhostetc/makes/1. when deploy server (w2k8, iis7.5) 500 error on same request - see http://api.carsnow.ie/makes/1

my question not causing error, error? can't see details 0 length response. earlier getting custom error @ stage when trying see underlying stack trace lost that.

so far have tried following....

i turned customerrors "off" in web.config

i added code webapiconfig.cs - http://lostechies.com/jimmybogard/2012/04/18/custom-errors-and-error-detail-policy-in-asp-net-web-api/

i added

globalconfiguration.configuration.includeerrordetailpolicy = includeerrordetailpolicy.always;  

to global.asax

i turned on detailed errors in iis7

this article should you:

in earlier versions of iis, error messages classic asp scripts sent web browser, default. because these error messages might reveal sensitive information malicious users, iis 7 , above disables feature default. when classic asp scripts encounter error in iis, receive following error message default:

an error occurred on server when processing url. please contact system administrator.  if system administrator please click here find out more error. 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -