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: , ,

33 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!

  26. solar power calculator perth June 21, 2013 at 10:06 am

    Thanks for sharing your thoughts about power generators.
    Regards

  27. awesome places to live around the world July 17, 2013 at 6:29 am

    Simply want to say your article is as surprising.

    The clarity for your submit is simply excellent and i can think you’re a professional in this subject. Fine with your permission let me to seize your RSS feed to keep up to date with drawing close post. Thank you a million and please keep up the rewarding work.

  28. Hannah September 16, 2013 at 9:24 pm

    Hello There. I discovered your weblog the use of msn.
    This is a really smartly written article. I’ll make sure to bookmark it and return to
    learn extra of your helpful info. Thanks for the post.
    I’ll definitely comeback.

  29. tap water September 24, 2013 at 8:40 pm

    An interesting discussion is worth comment. I
    do believe that you ought to write more about this subject matter, it might not be a
    taboo matter but typically folks don’t talk about such issues.
    To the next! Cheers!!

  30. forgetfulbandit63.jigsy.com September 25, 2013 at 3:58 pm

    Have you ever thought about adding a little bit more than just your
    articles? I mean, what you say is important and
    all. Nevertheless just imagine if you added some great pictures or videos to give your
    posts more, “pop”! Your content is excellent but with images and video clips, this website could definitely be one of the greatest in its field.
    Great blog!

  31. http://cosmeticdentist36.sosblogs.com/ October 6, 2013 at 8:28 pm

    If you wish for to obtain a good deal from this article then
    you have to apply such methods to your won web site.

  32. Zagreth October 23, 2013 at 5:17 pm

    Huge Thanks! I’ve been stuck with a horrible 500 error for days!

  33. buy aldactone for cash on delivery November 23, 2013 at 8:03 pm

    buy albendazole online consultation us
    no prescription desyrel online moneygram no rx alaska
    silagra codeine caffeine.
    where to buy prednisone in internet store without script hawaii
    comprar seroflo fiar donde
    buy topiramate online american express without script wisconsin
    silagra fed ex cod
    where to buy estrace vaginal cream online store saturday delivery austria
    low price atomoxetine online check without prescription california
    buy nitrazepam alprazolam
    Strep throat treatment how much silagra
    cheap lortab without prescription
    no script retin-a tretinoin medicine tablets
    betachron-er 20mg buy inderal 60mg from mexico study zu kaufen
    wo
    topiramate 50mg order online arkansas sulfa price topiramato
    desyrel rezeptfrei legal otc armor buy t4
    clavamel 625mg mrsa augmentin resistant
    fedex bactrim
    celexa side affects memory loss
    uno bestellen triamterene 50
    order cheap albendazole very buy without prescription
    low cost fucidin fucithalmic priority mail germany
    without prescription retin-a american express visa
    legally
    i want stromectol mastercard store uk
    without prescription stendra-priligy in internet cost
    to buy paracetamol in internet tabs saturday shipping usa
    want to buy renova discount mastercard
    buy gerneric estrace
    low price topamac topiramate wire transfer paypal
    abuse of atomoxetine rx overnight international
    co pays augmentin pharmacy denver sales global clavamox 375mg
    purchase inderal 60mg store free shipping
    buy amoxil singapore
    manager levofloxacin sales tts-1 price cost for 600mg esophagitis
    need finpecia online wire transfer no doctors minnesota
    nucynta ibuprofen interactions
    buy finpecia online diners club fast maine
    best price lipothin in internet check without prescription massachusetts
    can i buy proventil in internet pill no doctors delaware
    how to get augmentin online rx fast delivery alabama

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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 110 other followers

%d bloggers like this: