Display error messages in a different language that the operating system.

I have already installed the .net framework 4.0 spanish language pack in a windows server whose language is english.

I also created a windows service that runs on that server that sends to an email some application error messages acording to the errors or exceptions caught, but the messages are displayed in english and I want them to be displayed on spanish.

What I have to do in order to get the messages in spanish?

Regards and thanks in advice.
Francisco RosasIngeniero en SistemasAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

BuggyCoderConnect With a Mentor Commented:
create new culture info object for spanish culture, have a look at this msdn article for the same:-

to make sure that spanish reflect in all your messages, you need to change the default culture of your main thread... see the second link for that...
Francisco RosasIngeniero en SistemasAuthor Commented:
Thank you, it really helped me.
All Courses

From novice to tech pro — start learning today.