How to prevent an exception from being translated in .NET

Posted on 2009-04-23
Last Modified: 2013-12-17
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...

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

Question by:iFOREX
    1 Comment
    LVL 12

    Accepted Solution


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now