How to show the details of Error 500 on web server.


I run into Error 500 quite often while deploying web applications to web host server. While it’s good to provide a clean, nicely layout page to address the visitors upon error, but this page does not help developer in solving the problem.

To dive into the root of the problem and view the source of the error, we need turn on the “scriptErrorSentToBrowser". Paste the web.config code below to show the details of Error 500 and find out the root cause of your error. In case your web application is hosted in sub-domain or not in the root directory, paste also the web.config code above in the root directory.

1 <system.webServer> 2 <asp scriptErrorSentToBrowser="true"/> 3 <httpErrors errorMode="Detailed"/> 4 </system.webServer>

 

 

Happy debugging and Good Luck!

 

 

I don’t get paid for writing blog posts. Your “Votes” and “Like” is my only motivation, so please “Like” it if you found this information useful. Cheers!!! Check out what other says about this post by clicking at the title of this post. Wondering what I’m up to recently? Check out mySoftinn.com

About these ads

Tagged: , ,

25 thoughts on “How to show the details of Error 500 on web server.

  1. jeeshenlee October 27, 2010 at 9:51 pm

    Make sure the CustomError is turned off to avoid overrride.Below is the code to turn off CustomError.

  2. [...] Older » [...]

  3. Johni January 12, 2011 at 1:56 pm

    godaddy support is very bad, their hosting is fullish. very bad company

  4. jeeshenlee January 12, 2011 at 2:04 pm

    Hello Johni,

    I’m looking for other good options as well, any suggestions?

    Thanks.

  5. Bart January 31, 2011 at 9:55 am

    I have followed your suggestion by adding the information to the web.config file; however, I am still getting a generic 500 error from Godady – I have placed the web.config file in both the root and the subdirectory for DotNetNuke. Also, any suggestions on putting DotNetNuke in the root folder for a Godaddy hosting account?
    Thanks

  6. jeeshenlee January 31, 2011 at 10:17 am

    Hello Bart,

    If you are using multiple domains in GoDaddy, you need to configure the same at the ‘root’ (I mean root of where you divide your domain directory) as well.

    You can now host DNN at the root folder with the latest release of DNN. Download the installer from DNN website. Haven’t tried it myself, but I saw the Release Notes claiming they have fix this.

    All the best. :)

  7. amy6147 February 3, 2011 at 4:30 pm

    Thank you so much. It really helped.

    Best Regards,
    Amit Tiwari

  8. S May 9, 2011 at 9:15 am

    You are the BEST BEST BEST! This has been driving me crazy for WEEKS! Thanks so much!

  9. edwin devey September 14, 2011 at 10:42 pm

    I don’t get it. It doesn’t work for me.

  10. dalee October 7, 2011 at 12:27 am

    THANK YOU!!!

  11. cory December 1, 2011 at 7:52 am

    I am having the exact same problem with GoDaddy shared Windows hosting on IIS7. They’ve told me that this web.config code will turn off the custom 500 error screen, but it isn’t working. Is there something in this code that isn’t right? This is driving me nuts and they’re completely useless when it comes to providing support on their own systems. Seems that they just tell you over and over what’s wrong instead of what you need to do to fix it.

  12. cory December 1, 2011 at 7:54 am

    my code didn’t appear in my post above….here’s the link to the code they pointed me to: http://community.godaddy.com/help/article/3430?locale=en&ci=46061

  13. jeeshenlee December 1, 2011 at 12:50 pm

    @cory. May i know what you wanted to do exactly? you wanted to turn the custom error on or off? The code sample i post above help turn on the custom error. Hope this heps. Thanks.

  14. sankari December 20, 2011 at 11:44 am

    I have godaddy hosting plan in which multiple domains can be created. In one such domain (not primary) I have hosting my .net app. I am getting error 500
    In the web.config file I have included

  15. jeeshenlee December 20, 2011 at 11:49 am

    @sankari, assuming yuu are using the unlimited windows plan. You need to make the above changes at your root directory too (the root that host your primary domain).

  16. sankari December 20, 2011 at 11:51 am

    have godaddy hosting plan in which multiple domains can be created. In one such domain (not primary) I have hosting my .net app. I am getting error 500
    In the web.config file I have included

    but still i get error 500

  17. jeeshenlee December 20, 2011 at 11:58 am

    @sankiri, you need to update 2 web.config files – one at your current app doamin and another one at the root. You should be able to get the error details.

  18. sankari December 22, 2011 at 1:35 pm

    I placed web.config file in primary domain folder.

  19. sankari December 22, 2011 at 1:37 pm

    I removed the web.config file and tried with a simple aspx file. It works out. Then I added web.config file, now error 500 pops up.

  20. sankari December 22, 2011 at 6:26 pm

    I placed the config file in root folder. that domain turns error 500
    so i had to remove it.

  21. jeeshenlee December 23, 2011 at 10:57 am

    @sankari, try compare your working web.config file with the non-working. Check for difference. You should be able to identify the culprit.

    The code above is only meant to show the details of the error but not to remove the error.

  22. CKuhn203 December 24, 2011 at 2:42 am

    THANK YOU!!!!!

  23. [...] How to show the details of Error 500 on web server. Compartelo en tus redes Sociales TweetEntradas relacionadas:4 enero 2010 — Como [...]

  24. I did not see it and I did not feel it because I was looking for my cigarette and lighter.
    One of the problems is that there are vested financial interests.
    There is yet to have any conclusive evidence that cell phones damage the human brain cells, but the research suggests there was good reason to believe that they could have the same effect on
    humans.

  25. lloyd irvin May 3, 2013 at 2:51 pm

    Hey there would you mind stating which blog platform you’re using? I’m going to start my own blog in the near future but I’m having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I’m
    looking for something completely unique. P.S My apologies for getting
    off-topic but I had to ask!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 98 other followers

%d bloggers like this: