An HTTP 401 unauthorized response coming form IIS 7 body is empty. ASP.NET WEB API -


I have a custom message that is being unauthorized when I have to pass the customer.

I have used the following code to pass the message value on the response body:

  string message = baseEx.Detail.ExtraData; Return Reference. request. Create irreversions (HTTP status codes. Unknown, messages);  

All work well on my local host, but when I deploy the code on Windows Server machine with IIS 7, I get a blank reaction body.

I am using the asp.net web API

What could be?

Thanks


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -