DotNetBlog der DotNet-Blog Alles rund um Microsoft .NET – von  Sascha H. Baumann

Die Kultur de ist neutral. Sie kann nicht als die aktuelle Threadkultur festgelegt werden, da sie nicht zum Formatieren und Analysieren verwendet werden kann

1 Star2 Stars3 Stars4 Stars5 Stars (2 Bewetungen, Durchschnitt: 3.50 von 5)
Loading ... Loading ...

I got this message yesterday, while trying to save changes into entity framework. the whole thing was within an ASHX-Handler and I couldn’t figure out , what the deal was.

Now I found a solutions. Just add the following line at the beginning of your method /codeblock and you are fine:

C#

System.Threading.Thread.CurrentThread.CurrentUICulture =
     new System.Globalization.CultureInfo("de-DE");

VB.net

System.Threading.Thread.CurrentThread.CurrentUICulture = _
     New System.Globalization.CultureInfo("de-DE")

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • MisterWong.DE
  • Technorati
  • Webnews.de
  • YahooMyWeb

Hinterlasse eine Antwort

CAPTCHA-Bild CAPTCHA Audio
Bild neuladen

Bad Behavior has blocked 35 access attempts in the last 7 days.