Print Page | Close Window

Silverlight Supported Cultures

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1908
Printed Date: 21-Apr-2026 at 2:09pm


Topic: Silverlight Supported Cultures
Posted By: gkneo
Subject: Silverlight Supported Cultures
Date Posted: 23-Jun-2010 at 1:54am
Hi. I am trying to localize my silverlight application that uses Devforce, but when I change the silverlight's project "SupportedCultures" node value from anything different than "en", it gives the following message at the domain model constructor:

System.IO.FileLoadException:
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
   at System.Reflection.AssemblyName.nInit(RuntimeAssembly& assembly, Boolean forIntrospection, Boolean raiseResolveEvent)
   at System.Reflection.AssemblyName.nInit()
   at System.Reflection.AssemblyName..ctor(String assemblyName)
   at IdeaBlade.Core.Composition.PartsCatalog.GetProbeAssemblies()
   at IdeaBlade.Core.Composition.PartsCatalog.LoadCatalog()
   at IdeaBlade.Core.Composition.PartsCatalog..ctor()
   at IdeaBlade.Core.Composition.CompositionHost..ctor()
   at IdeaBlade.Core.Composition.CompositionHost.get_Instance()
   at IdeaBlade.Core.IdeaBladeConfig.GetAllProbeAssemblyNames()
   at IdeaBlade.Core.AuthHelper.LoadRuntimeLicense(Action`1 errorCallback)
   at IdeaBlade.Core.AuthHelper.LoadLicense(Action`1 licenseErrorCallback)
   at IdeaBlade.Core.IdeaBladeConfig.Initialize()


For example, the following works:

<SupportedCultures></SupportedCultures>


<SupportedCultures>en</SupportedCultures>


The following does not work:

<SupportedCultures>es</SupportedCultures>


<SupportedCultures>en;es</SupportedCultures>


<SupportedCultures>es-ES</SupportedCultures>



I was localizing my application as in this http://weblogs.asp.net/anytao/archive/2009/02/05/localization-solution-in-silverlight.aspx - blog

I have noticed that when I include the "es" values my xap contains a "es" folder with the proper resources (.dll) and that is when I get the exception.

I am using Windows 7 Enterprise x64 English with DevForce 2010 v6.0.3.1


Edit:
I even change the silverlight "Separate Models Project" project from the Learning resources and got the same error.




Replies:
Posted By: ting
Date Posted: 24-Jun-2010 at 5:01pm
Looks like this could be a bug (with the probing logic we perform with the Managed Extensibility Framework).  We'll take a look at it.  Thanks for pointing this out.


Posted By: gkneo
Date Posted: 28-Jun-2010 at 11:36am
Hi, how much time would you need to check it out and release a patch?


Posted By: ting
Date Posted: 28-Jun-2010 at 9:09pm
We're still looking at it, but assuming we don't run into any major issues, we will have this fixed in the next release (currently scheduled for the last two weeks in July).  After analyzing the problem in more detail we may be able to provide a workaround in the interim.


Posted By: ting
Date Posted: 06-Jul-2010 at 4:38pm
This has been fixed and will be part of the next release.


Posted By: gkneo
Date Posted: 06-Jul-2010 at 11:12pm
Thank you. I'll wait for it.



Print Page | Close Window