locked
General Error Message "Uh-oh, something went wrong" RRS feed

  • Question

  • Dear Friends,

    I use Visual Web Developer 2010. It seems that a recent update has changed the program's behavior when an exception is thrown and not handled. Instead of a detailed message with the line of code that threw the exception, the exception type, and a stack trace, all I get now is "Uh-oh, something went wrong! Error Code: 500."

    For a production web site, this could be an improvement, but for development it is a huge step backwards.

    If there is something I can do to restore the original behavior, at least for development, I would appreciate some detailed instructions.

    Thank you for your trouble, and best regards.

    Eric (orexin)


    • Edited by orexin Wednesday, June 4, 2014 10:00 PM
    • Moved by Carl Cai Friday, June 27, 2014 9:55 AM (from debug)not related
    Wednesday, June 4, 2014 9:59 PM

Answers

All replies

  • Dear Friends,

    I use Visual Web Developer 2010. It seems that a recent update has changed the program's behavior when an exception is thrown and not handled. Instead of a detailed message with the line of code that threw the exception, the exception type, and a stack trace, all I get now is "Uh-oh, something went wrong! Error Code: 500."

    For a production web site, this could be an improvement, but for development it is a huge step backwards.

    If there is something I can do to restore the original behavior, at least for development, I would appreciate some detailed instructions.

    Thank you for your trouble, and best regards.

    Eric (orexin)


    Hi,

    Just in order to clarify this issue, we'd better confirm with you following tips.

    1. How did you debug your project? With Page Inspector or Internet Explorer?

    >>Instead of a detailed message with the line of code that threw the exception, the exception type, and a stack trace, all I get now is "Uh-oh, something went wrong! Error Code: 500."<<

    2. Have you ever setted error page for your project? If so, you could remove these settings to test.

    3. Another important part of testing a web application is IIS, have you changed any settings of your IIS? You could restart your IIS and test it again. And you could test it with Visual Studio Development Server to check the result.

    4.In addition, based on that error code 500, which somehow means there is an error with the server, which may be out of the range of the exceptions which VS could display its detailed exception information. You could confirm it by reverting VS settings with Tools->Settings->Import and Export Settings-> Reset all settings->No...->Next,

    or just repair your VS to test.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, June 5, 2014 10:00 AM
  • Hi Carl,

    Thank you for your response.

    (1) I'm not familiar with Page Inspector, but I do run Build Page and Build Web Site before running the whole site with Control-F5.

    (2) No, I haven't set an error page for the project.

    (3) No, I haven't changed any settings in IIS.

    I have been able to find some causes of the error message by examining the code. Running the site with F5 (debug) has also helped. However, both of these approaches take quite a bit of time.

    It has only been in the last few days that I have ever seen this "Uh-oh" error message. So I'm wondering whether it is due to a recent update to VS. Do you know whether it is?

    With best regards,

    Eric

    Thursday, June 5, 2014 10:57 AM
  • Hi Carl,

    Thank you for your response.

    (1) I'm not familiar with Page Inspector, but I do run Build Page and Build Web Site before running the whole site with Control-F5.

    (2) No, I haven't set an error page for the project.

    (3) No, I haven't changed any settings in IIS.

    I have been able to find some causes of the error message by examining the code. Running the site with F5 (debug) has also helped. However, both of these approaches take quite a bit of time.

    It has only been in the last few days that I have ever seen this "Uh-oh" error message. So I'm wondering whether it is due to a recent update to VS. Do you know whether it is?

    With best regards,

    Eric

    Hi,

    Thanks for your detailed reply.

    >>It has only been in the last few days that I have ever seen this "Uh-oh" error message. So I'm wondering whether it is due to a recent update to VS. Do you know whether it is?<<

    Based on that error code 500, as I described before that error code somehow means there is an error with the server and that could be outside the range VS could show detailed information, since the server which hosted your website is separated with VS.

    >>Instead of a detailed message with the line of code that threw the exception, the exception type, and a stack trace, all I get now is "Uh-oh, something went wrong! Error Code: 500."<<

    Just to confirm whether exceptions are replaced with that format exception message, you could just code a exception to test like the following ones to confirm whether it is replaced with that formatted message.

    NullReferenceException

    C#:

     string str = null;
     int i = str.Length;

    VB.net:

    Dim str As String = Nothing
    Dim i As Integer = str.Length

    >>It has only been in the last few days that I have ever seen this "Uh-oh" error message. So I'm wondering whether it is due to a recent update to VS. Do you know whether it is?<<

    In my opinion, if you have seen the message with the same exception, and it is absolutely different with "Ub-oh", then we will be sure that is due to VS, but if you haven't came across that exception, then maybe it should be displayed with that message or not. To sum up, we need a reference object to compare with.

    If possible, please share the result of that NullReferenceException testing, and if you could reproduce that exception, then steps how to reproduce it will be appreciated.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, June 6, 2014 3:37 AM
  • Hi Carl,

    Thank you for your interest in this issue.

    I have run the test you suggest both locally and on a remote server. In each case I get the "Uh-oh" message. This message shows up in a browser.

    In the past I received full-page messages saying that a NullReferenceException had occurred and showing the line of code that triggered it, as well as a stack trace. The stack trace was never of much use to me, but the other information was. Now it can take hours to find an error, whereas it took hardly a minute in the past.

    With best regards,

    Eric (orexin)


    • Edited by orexin Friday, June 6, 2014 2:04 PM
    Friday, June 6, 2014 1:55 PM
  • Hi Carl,

    A few minutes ago I tried to take a site offline by uploading a file with the name app_offline.htm. I have never had a problem with this before, but now I get another "Uh-oh" message, this time with Error Code 404. This is a site on a remote server.

    With best regards,

    Eric

    Saturday, June 7, 2014 6:28 PM
  • Hi Carl,

    A few minutes ago I tried to take a site offline by uploading a file with the name app_offline.htm. I have never had a problem with this before, but now I get another "Uh-oh" message, this time with Error Code 404. This is a site on a remote server.

    With best regards,

    Eric

    Hi,

    Based on these words above, it seems this issue is not related to your Visual Studio, to confirm this tip, you could just run your website which has published to your IIS or remote server instead of running it from VS.

    >> have run the test you suggest both locally and on a remote server. In each case I get the "Uh-oh" message. This message shows up in a browser.<<

    If possible, you could share the version of that browser with us. And you could just check whether you have installed any add-in to that browser, if so then uninstall these add-ins to test.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Carl Cai Friday, June 13, 2014 5:21 AM
    • Marked as answer by Carl Cai Monday, June 16, 2014 9:16 AM
    • Unmarked as answer by Carl Cai Thursday, June 26, 2014 1:41 AM
    • Unproposed as answer by Carl Cai Thursday, June 26, 2014 2:09 AM
    Monday, June 9, 2014 2:19 AM
  • Has anyone got to the bottom of this? The answers above so far aren't resulting in anything of use here
    Friday, June 20, 2014 8:19 PM
  • Having done testing on different computers, I suspect that this problem is due to browser updates, rather than Visual Studio updates, but I get it with both Internet Explorer and Mozilla Firefox. Not sure how to deal with it. Any suggestions would be appreciated. I recently uninstalled Chrome. So haven't tested that browser.
    Wednesday, June 25, 2014 1:49 PM
  • Hi,

    Having done testing on different computers, I suspect that this problem is due to browser updates, rather than Visual Studio updates, but I get it with both Internet Explorer and Mozilla Firefox. Not sure how to deal with it. Any suggestions would be appreciated. I recently uninstalled Chrome. So haven't tested that browser.

    According to your description, this may be not related to your Visual Studio and Internet Explorer, since that has the same issue with remote website in IE, Firefox. Maybe you could check whether you installed any add-in to your browser, and uninstall these add-ins to test. 

    In addition, as that shows this issue is not related to your Visual Studio which is out of the support range of this forum.

    Thanks for your understanding.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, June 26, 2014 2:41 AM
  • Hi,

    I am moving your question to the moderator forum ("Where is the forum for..?").

    The owner of the forum will direct you to a proper forum.

    Thanks for your understanding.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, June 27, 2014 9:56 AM
  • I'd probably try them over here.

    Microsoft Visual Studio and Visual Web Developer Express forums

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Friday, June 27, 2014 2:17 PM
  • Hi

    to fix this error, remove all spyware like (rokecttab...) in your computer. this spyware install certificats who are succeptible to change other program execution like VS configuration

    willi@m.

    Friday, September 12, 2014 11:22 AM