12

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?

16

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.

| improve this answer | |
  • this literally changed nothing about the response for me so I tried an iis reset … still no luck :( using iis 10 though. – War Sep 9 '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
  • 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 4:02
2

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

| improve this answer | |
  • 1
    Simple, but easy to forget – freefaller Sep 13 '19 at 11:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.