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

2 posts, 0 answers
  1. Louis Bouchard
    Louis Bouchard avatar
    94 posts
    Member since:
    Feb 2010

    Posted 11 Apr 2011 Link to this post

    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: 



  2. Tao
    Tao avatar
    1 posts
    Member since:
    Jan 2012

    Posted 23 Aug 2012 Link to this post

    I have the same problem, anybody can solve it?

    Thanks,
    Tao
Back to Top