22

I have ii8 which I have tried to deploy my asp.net web api to. I guess I am doing something wrong as when I try to see if my api is working I am getting a 500 error.

However it does not tell me what the error is. How can I get more detailed information?

chobo2
  • 441
  • 1
  • 9
  • 18

2 Answers2

20

In IIS Manager, select your site, double-click the Error Pages icon and click on Edit Feature Settings in the pane on the right. Choose Detailed Errors. If that is not enough, click on the .NET Error Pages in the ASP.NET section, again Edit Feature Settings in the pane on the right, choose Off.

If this is a production machine, change these settings back after you are done with debugging your code.

Peter Hahndorf
  • 13,763
  • 3
  • 37
  • 58
  • 1
    this literally changed nothing about the response for me so I tried an iis reset … still no luck :( using iis 10 though. – War Sep 09 '18 at 12:17
  • This answer helped me to find a way to see what was the issue in my webpage, it was really worth! Thank you! – João Silva Oct 19 '18 at 16:22
  • 1
    I needed to do this for both the _site_ **and** the _server_ to get the detail to make it all the way to my browser (on another machine) – Player One May 20 '19 at 04:02
5

IIS will, by default, show you detailed errors if you browse via localhost on the web server itself. That might help?

Chris Satola
  • 332
  • 2
  • 6