An unhandled exception returns unnecessary characters instead of an error

In my ASP.NET (3.5) application, I do not have global exception handling, and if an unhandled exception occurs, instead of getting the standard yellow ASP.NET error, I get a bunch of unwanted characters (quite long and different every time) - things like:

y6hH ': ղ> Eu 裟 Y>: Ob> "+ 壦 (? ӪG2 =% weight @}

Obviously, I will fix this by setting the correct exception handling in the application, but did you know what it might be? For debugging purposes, sometimes it's nice to see a yellow exception screen.

I see this both in my dev environment (Windows 7) and on the server (I think it is Windows Server 2003 with IIS6, but I'm not sure).

This happens in all browsers - if I look at the source, garbage characters are actually in the source.

thank

+3
source share
2 answers

This may be a character encoding problem.

+1
source

It sounds like some corruption in memory. Have you tried debugging by executing code through Visual Studio on your dev machine? Sometimes debugging through YSOD can make it difficult to find the exact cause of the error.

+1
source

Source: https://habr.com/ru/post/1727719/


All Articles