Exception when changing Default language of App

A few days ago I tried to change the default language of my Windoiws Store App.

 

I tried to change it in the “Package.appxmanifest” file.

 

image

 

I clicked on more information and the browser showed me this site: http://msdn.microsoft.com/en-us/library/windows/apps/jj657969.aspx

The website states for german language you can use “de”.

image

 

Therefore I changed  “en-us” to “de”.

image

 

 

 

 

Hopeful I started the App but an Exception welcomed me. There were several of them.

 

A first chance exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in GerichteApp.Windows.exe

WinRT information: E_UNKNOWN_ERROR [Line: 62 Position: 51]

Additional information: The text associated with this error code could not be found.

E_UNKNOWN_ERROR [Line: 62 Position: 51]

If there is a handler for this exception, the program may be safely continued.

 

image

 

image

 

Thus this option is not working for me. Maybe it’s not working with “de” as language code, but I don’t know.

 

Just wanted to share this, if someone has the same problem and can not figure out why these exceptions are happening.

 

Feel free to comment, if you know what’s the problem here :)


Posted Aug 12 2014, 10:00 AM by Holger Vetter
Filed under:

Comments

D wrote re: Exception when changing Default language of App
on 08-12-2014 21:00

can this help-

Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "de";

var resourceLoader = new ResourceLoader();

Mahmoud Abduo wrote re: Exception when changing Default language of App
on 01-19-2015 22:29

I had a similar problem once where I was referencing a resource dictionary key that did not exist in the selected language.

For example, "CategoryHeader" was defined as "categories" in the english resource, but it was completely missing in the german resource, causing the app to crash when that page was loaded in german.

Of course, there may be other reasons why that XAML was failing to parse.

developers.de is a .Net Community Blog powered by daenet GmbH.