Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change runtime errors into english

I am seeing run-time errors in local language of windows which is annoying (pic below). I have changed regional settings to English from Windows settings, and also international language from Visual Studio environments settings also added globalization uiCulture="en-US" into web.config but still no success, is there something I am missing?

non-english pic

like image 448
apprich Avatar asked Apr 27 '11 14:04

apprich


2 Answers

Just in case you encounter a localized messaged and are looking 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

like image 117
Dirk Vollmar Avatar answered Oct 04 '22 01:10

Dirk Vollmar


ok found out the solution just added lines below into application_error in global.asax

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

like image 21
apprich Avatar answered Oct 04 '22 01:10

apprich