Windows Phone Developers

Showing posts with label System.Globalization.CultureNotFoundException was unhandled. Show all posts
Showing posts with label System.Globalization.CultureNotFoundException was unhandled. Show all posts

Saturday, May 8, 2010

en-UK is an invalid culture identifier - VB.NET/C#/Csharp

Culture is not supported. Parameter name: name en-UK is an invalid culture identifier.


We are used to en-UK as culture. but for some reasons MS doesn't support en-UK (UK is used for Ukraine)

Hence replace
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-UK", false);
            

with

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB", false);
            
Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon