29

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
  • 521

2 Answers2

27

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.

11

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