How to change runtime errors in English

I see runtime errors in the local language of windows that are annoying (Figure below). I changed the regional settings to English from the Windows settings, as well as the international language from the settings of the Visual Studio environment, also added the globalization uiCulture="en-US" to web.config , but still failed if there is something that I don’t see?

non-english pic

+6
source share
4 answers

ok found that the solution just added the lines below to application_error in global.asax

Thread.CurrentThread.CurrentCulture = new CultureInfo ("en-us"); Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;

+1
source

Just in case, you come across localized messages and look for the original error message: you can use the service on unlocalize.com to translate back:

http://www.unlocalize.com/SearchResults.aspx?search=Uygulamas%C4%B1nda+Sunucu+Hatas%C4%B1

+2
source

I think the problem is with the IIS configuration, it was not installed in English Windows, and the English error page did not have this.

See you

0
source

Perhaps your browser requests a non-English page by default? What happens if you change the default language, say, in IE? You can find the settings under Options> General> Languages.

0
source

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


All Articles