This is a migrated thread and some comments may be shown as answers.

The type ... has been mapped more than once AND

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Louis Bouchard
Top achievements
Rank 1
Louis Bouchard asked on 11 Apr 2011, 03:40 PM
Hello,

Maybe it's not related to Telerik but ig anyone can give me a little clue about those errors I will be very glad.  I use Entity Framework.  Those errors are from the Event Viewer of my server.

WebHost failed to process a request.
 Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/63258135
 Exception: System.ServiceModel.ServiceActivationException: The service '/Services/mes-Web-Services-descriptionsDomainService.svc' cannot be activated due to an exception during compilation.  The exception message is: The type 'mes.Web.Fiches' has been mapped more than once.. ---> System.Data.MappingException: The type 'mes.Web.Fiches' has been mapped more than once.
   at System.Data.Mapping.DefaultObjectMappingItemCollection.AddInternalMapping(ObjectTypeMapping objectMap)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.LoadObjectMapping(EdmType cdmType, EdmType objectType, DefaultObjectMappingItemCollection ocItemCollection)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.TryGetMap(String identity, DataSpace typeSpace, Boolean ignoreCase, Map& map)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.TryGetMap(String identity, DataSpace typeSpace, Map& map)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.TryGetMap(GlobalItem item, Map& map)
   at System.Data.Metadata.Edm.MetadataWorkspace.TryGetMap(GlobalItem item, DataSpace dataSpace, Map& map)
   at System.Data.Metadata.Edm.MetadataWorkspace.TryGetEdmSpaceType(StructuralType objectSpaceType, StructuralType& edmSpaceType)
   at System.ServiceModel.DomainServices.EntityFramework.ObjectContextUtilities.GetEdmType(MetadataWorkspace workspace, Type clrType)
   at System.ServiceModel.DomainServices.EntityFramework.LinqToEntitiesDomainServiceDescriptionProvider.LookupIsEntityType(Type type)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass14.<>c__DisplayClass16.<CreateDescriptionProvider>b__13(DomainServiceDescriptionProvider p)
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass14.<CreateDescriptionProvider>b__12(Type t)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProvider.IsEntityType(Type type)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.IsQueryMethod(DomainOperationEntry operation)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.TryClassifyImplicitDomainOperation(ReflectionDomainOperationEntry operation)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.ClassifyDomainOperation(ReflectionDomainOperationEntry operation)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.GetDescription()
   at System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProvider.GetDescription()
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.CreateDescription(Type domainServiceType)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass10.<GetDescription>b__f(Type type)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.GetDescription(Type domainServiceType)
   at System.ServiceModel.DomainServices.Hosting.DomainServiceHost..ctor(Type domainServiceType, Uri[] baseAddresses)
   at System.ServiceModel.DomainServices.Hosting.DomainServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
   at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
   --- End of inner exception stack trace ---
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
 Process Name: w3wp
 Process ID: 4080

and this error too

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 4/11/2011 8:05:54 AM 
Event time (UTC): 4/11/2011 12:05:54 PM 
Event ID: 42c982d28de844309b7ad167bf6a5394 
Event sequence: 12 
Event occurrence: 1 
Event detail code: 0 
   
Application information: 
    Application domain: /LM/W3SVC/6/ROOT-1-129469971509735892 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: D:\Plesk\VHOSTS\mes.com\httpdocs\ 
    Machine name: P2389483 
   
Process information: 
    Process ID: 4080 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 
   
Exception information: 
    Exception type: MappingException 
    Exception message: The type 'mes.Web.Fiches' has been mapped more than once.
   at System.Data.Mapping.DefaultObjectMappingItemCollection.AddInternalMapping(ObjectTypeMapping objectMap)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.LoadObjectMapping(EdmType cdmType, EdmType objectType, DefaultObjectMappingItemCollection ocItemCollection)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.TryGetMap(String identity, DataSpace typeSpace, Boolean ignoreCase, Map& map)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.TryGetMap(String identity, DataSpace typeSpace, Map& map)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.TryGetMap(GlobalItem item, Map& map)
   at System.Data.Metadata.Edm.MetadataWorkspace.TryGetMap(GlobalItem item, DataSpace dataSpace, Map& map)
   at System.Data.Metadata.Edm.MetadataWorkspace.TryGetEdmSpaceType(StructuralType objectSpaceType, StructuralType& edmSpaceType)
   at System.ServiceModel.DomainServices.EntityFramework.ObjectContextUtilities.GetEdmType(MetadataWorkspace workspace, Type clrType)
   at System.ServiceModel.DomainServices.EntityFramework.LinqToEntitiesDomainServiceDescriptionProvider.LookupIsEntityType(Type type)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass14.<>c__DisplayClass16.<CreateDescriptionProvider>b__13(DomainServiceDescriptionProvider p)
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass14.<CreateDescriptionProvider>b__12(Type t)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProvider.IsEntityType(Type type)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.IsQueryMethod(DomainOperationEntry operation)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.TryClassifyImplicitDomainOperation(ReflectionDomainOperationEntry operation)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.ClassifyDomainOperation(ReflectionDomainOperationEntry operation)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.GetDescription()
   at System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProvider.GetDescription()
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.CreateDescription(Type domainServiceType)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass10.<GetDescription>b__f(Type type)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.GetDescription(Type domainServiceType)
   at System.ServiceModel.DomainServices.Hosting.DomainServiceHost..ctor(Type domainServiceType, Uri[] baseAddresses)
   at System.ServiceModel.DomainServices.Hosting.DomainServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
   at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
  
   
   
Request information: 
    Request path: /Services/mes-Web-Services-descriptionsDomainService.svc/binary/GetFichesParNoEspaceClosClient 
    User host address: 67.68.90.46 
    User: harry_am 
    Is authenticated: True 
    Authentication Type: Forms 
    Thread account name: P2389483\Administrator 
   
Thread information: 
    Thread ID: 13 
    Thread account name: P2389483\Administrator 
    Is impersonating: False 
    Stack trace:    at System.Data.Mapping.DefaultObjectMappingItemCollection.AddInternalMapping(ObjectTypeMapping objectMap)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.LoadObjectMapping(EdmType cdmType, EdmType objectType, DefaultObjectMappingItemCollection ocItemCollection)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.TryGetMap(String identity, DataSpace typeSpace, Boolean ignoreCase, Map& map)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.TryGetMap(String identity, DataSpace typeSpace, Map& map)
   at System.Data.Mapping.DefaultObjectMappingItemCollection.TryGetMap(GlobalItem item, Map& map)
   at System.Data.Metadata.Edm.MetadataWorkspace.TryGetMap(GlobalItem item, DataSpace dataSpace, Map& map)
   at System.Data.Metadata.Edm.MetadataWorkspace.TryGetEdmSpaceType(StructuralType objectSpaceType, StructuralType& edmSpaceType)
   at System.ServiceModel.DomainServices.EntityFramework.ObjectContextUtilities.GetEdmType(MetadataWorkspace workspace, Type clrType)
   at System.ServiceModel.DomainServices.EntityFramework.LinqToEntitiesDomainServiceDescriptionProvider.LookupIsEntityType(Type type)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass14.<>c__DisplayClass16.<CreateDescriptionProvider>b__13(DomainServiceDescriptionProvider p)
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass14.<CreateDescriptionProvider>b__12(Type t)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProvider.IsEntityType(Type type)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.IsQueryMethod(DomainOperationEntry operation)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.TryClassifyImplicitDomainOperation(ReflectionDomainOperationEntry operation)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.ClassifyDomainOperation(ReflectionDomainOperationEntry operation)
   at System.ServiceModel.DomainServices.Server.ReflectionDomainServiceDescriptionProvider.GetDescription()
   at System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProvider.GetDescription()
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.CreateDescription(Type domainServiceType)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.<>c__DisplayClass10.<GetDescription>b__f(Type type)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at System.ServiceModel.DomainServices.Server.DomainServiceDescription.GetDescription(Type domainServiceType)
   at System.ServiceModel.DomainServices.Hosting.DomainServiceHost..ctor(Type domainServiceType, Uri[] baseAddresses)
   at System.ServiceModel.DomainServices.Hosting.DomainServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
   at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
   
   
Custom event details: 



1 Answer, 1 is accepted

Sort by
0
Tao
Top achievements
Rank 1
answered on 24 Aug 2012, 03:34 AM
I have the same problem, anybody can solve it?

Thanks,
Tao
Tags
General Discussions
Asked by
Louis Bouchard
Top achievements
Rank 1
Answers by
Tao
Top achievements
Rank 1
Share this question
or