New Posts New Posts RSS Feed: Error in Chinese SO and database
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Error in Chinese SO and database

 Post Reply Post Reply
Author
Satcholic View Drop Down
Newbie
Newbie
Avatar

Joined: 15-Apr-2011
Location: USA
Posts: 1
Post Options Post Options   Quote Satcholic Quote  Post ReplyReply Direct Link To This Post Topic: Error in Chinese SO and database
    Posted: 31-Aug-2012 at 8:22am
Hi , I have this error when I try to connect to a database with collation chinese and SO XP zh-CN
I try run custom tool, update model and nothing on XP chinese.
delete and create the new model and nothing same error.
I review the string connections and are OK.
VS ultimate 2010
.NET 4
SO XP  PRO SP3 chinese simplified zh-CN
other data:  Originally the model was created on Collation Latin1 SQLexpress on W7 ultimate en-US
I created a new project to connect to the same database on XP chinese and run perfect and I can read and execute querys.

IdeaBlade.EntityModel.EntityServerException: Key 'RMS_ULEntities': The model's metadata artifact files (csdl, msl, ssdl) are either invalid or could not be found, either as resources in an assembly or loose in the output directory.  Perhaps you have multiple assemblies containing the same metadata. Check the connection string for key 'RMS_ULEntities', which says the artifact filenames are RMS_Model.csdl, RMS_Model.ssdl, and RMS_Model.msl. Do these names match the actual artifact filenames? All three root names (e.g., 'RMS_Model') should be the same and match the edmx filename unless you changed them deliberately. ---> IdeaBlade.EntityModel.EntityServerException: The model's metadata artifact files (csdl, msl, ssdl) are either invalid or could not be found, either as resources in an assembly or loose in the output directory.  Perhaps you have multiple assemblies containing the same metadata. Check the connection string for key 'RMS_ULEntities', which says the artifact filenames are RMS_Model.csdl, RMS_Model.ssdl, and RMS_Model.msl. Do these names match the actual artifact filenames? All three root names (e.g., 'RMS_Model') should be the same and match the edmx filename unless you changed them deliberately. ---> System.Data.MetadataException: ?????????§¹??????: 
RMS_Model.csdl(3,79) : ???? 0004: Could not load file or assembly 'System.Xml.resources, Version=4.0.0.0, Culture=zh-CN, PublicKeyToken=b77a5c561934e089' or one of its dependencies. ?????????????????
   ?? System.Data.Metadata.Edm.EdmItemCollection.LoadItems(IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths, SchemaDataModelOption dataModelOption, DbProviderManifest providerManifest, ItemCollection itemCollection, Boolean throwOnError)
   ?? System.Data.Metadata.Edm.EdmItemCollection.Init(IEnumerable`1 xmlReaders, IEnumerable`1 filePaths, Boolean throwOnError)
   ?? System.Data.Metadata.Edm.EdmItemCollection..ctor(IEnumerable`1 xmlReaders, IEnumerable`1 filePaths)
   ?? System.Data.Metadata.Edm.MetadataCache.EdmMetadataEntry.LoadEdmItemCollection(MetadataArtifactLoader loader)
   ?? System.Data.Metadata.Edm.MetadataCache.EdmItemCollectionLoader.LoadItemCollection(EdmMetadataEntry entry)
   ?? System.Data.Metadata.Edm.MetadataCache.LoadItemCollection[T](IItemCollectionLoader`1 itemCollectionLoader, T entry)
   ?? System.Data.Metadata.Edm.MetadataCache.GetOrCreateEdmItemCollection(String cacheKey, MetadataArtifactLoader loader, Object& entryToken)
   ?? System.Data.EntityClient.EntityConnection.LoadEdmItemCollection(MetadataWorkspace workspace, MetadataArtifactLoader artifactLoader)
   ?? System.Data.EntityClient.EntityConnection.GetMetadataWorkspace(Boolean initializeAllCollections)
   ?? System.Data.Objects.ObjectContext.RetrieveMetadataWorkspaceFromConnection()
   ?? System.Data.Objects.ObjectContext..ctor(EntityConnection connection, Boolean isConnectionConstructor)
   ?? IdeaBlade.EntityModel.Edm.EdmKey.CreateObjectContext()
   ?? IdeaBlade.EntityModel.Edm.EdmKey.CreateContext()
   --- ??????????????¦Â ---
   ?? IdeaBlade.EntityModel.Edm.EdmKey.CreateContext()
   ?? IdeaBlade.EntityModel.Edm.EdmKey.Initialize()
   ?? IdeaBlade.EntityModel.Edm.EdmKey.CreateContext()
   --- ??????????????¦Â ---
   ?? IdeaBlade.EntityModel.EntityManager.HandleEntityServerException(Exception ex, Boolean tryToHandle, PersistenceOperation operation, Boolean throwOnError)
   ?? IdeaBlade.EntityModel.EntityManager.ExecuteServerQuery(IEntityQuerySurrogate entityQuery)
   ?? IdeaBlade.EntityModel.EntityManager.ExecuteFetch(IEntityFinder finder)
   ?? IdeaBlade.EntityModel.EntityQueryFinder.Execute()
   ?? IdeaBlade.EntityModel.EntityManager.ExecuteQueryCore(IEntityQuery query, Boolean isAsync)
   ?? IdeaBlade.EntityModel.EntityQuery`1.System.Linq.IQueryProvider.Execute[TResult](Expression expression)
   ?? System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source)
   ?? Cmx.Rms.RmsUniversalLink.DAL.Common.InterfaceRepository.GetInterfacePriority(Int32 iPriority)
   ?? Cmx.Rms.RmsUniversalLink.SAP.BL.InterfaceService.GetInterfacePriority(InterfacePriority priority)
   ?? Cmx.Rms.RmsUniversalLink.ListenerRms.SetupTimer()

Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 31-Aug-2012 at 2:13pm
Hi Satcholic,
 
You mentioned that this issue only happens on existing models and it works fine on models created on the WinXP Chinese machine.
 
Were you able to reproduce the issue is plain EF? It looks like the issue is at the model generation level.
 
Regards,
   Silvio.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down