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
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.
Edited by gkneo - 23-Jun-2010 at 1:57am