Error Regarding Localization Resource

Error Regarding Localization Resource

Old forum URL: forums.lhotka.net/forums/t/9821.aspx


BigPines2 posted on Wednesday, December 01, 2010

When I call [BusinessObject].SaveObject, I get the following error:

'Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "CSLA.Resources.resources" was correctly embedded or linked into assembly "Csla" at compile time, or that all the satellite assemblies required are loadable and fully signed.'

I have been searching for hours trying to figure out what is wrong. I have verified the CSLA project contains the Resources.resx under Properties and the build Action is set to "Embedded Resource." I have tried everything I can think of including re-creating the Resources.resx file and re-compiling but my app is never happy.

My neutral language on all projects is set to (none). My OS is Windows 7 US english. Anybody have any ideas? This is driving me crazy!

Mike

BigPines2 replied on Tuesday, December 14, 2010

Bump!

I still can't figure this one out.

Mike

RockfordLhotka replied on Wednesday, December 15, 2010

There is no SaveObject method on BusinessBase. Are you using a customized version or do you have some other code between your class and CSLA? Perhaps the issue is in that code?

BigPines2 replied on Wednesday, December 15, 2010

Yes, it turned out to be a problem with Petar Kozul's ActiveObjects code creating a new ResourceManager. His code was referencing CSLA's localization using the path "Csla.Resources." For anyone else who may be experiencing something similar, the correct path is "Csla.Properties.Resources."

Thanks again Rocky!

Mike

Copyright (c) Marimer LLC