• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 455
  • Last Modified:

How to prevent an exception from being translated in .NET

Hi,
How can I prevent the exception messages and stack trace in my C# WinForms application from being translated to the locale language?
It is important for me to keep the current culture to what the user has selected because I do want them to keep seeing the translated version of the app, but I just don't want .net error messages to be translated into the locale language.

I need them in English because I have an error reporting mechanism that sends me the error messages and I can't read Japanese, French, Swedish etc...

Thanks!
Exception Message: Le délai d'attente de l'opération a expiré.
 
Exception StackTrace:    à System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   à System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
   à System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   à MyApp.WS.Method1(SParam param)
   à MyApp.WS.Method2(SDetails data)
   à MyApp.Form.btnOK_Click(Object sender, EventArgs e)

Open in new window

0
iFOREX
Asked:
iFOREX
1 Solution
 
Nirmalan NagenthiranCommented:
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now