Data Platform Developer Center > Data Platform Development Forums > ADO.NET Entity Framework and LINQ to Entities > Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Ask a questionAsk a question
 

QuestionUnable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

  • Tuesday, July 07, 2009 8:15 AMDynamic Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have developed an application using Entity Framework, SQL Server 2000, VS 2008 and Enterprise Library.

    It works absolutely fine locally but when I deploy the project to our test environment, I am getting the following error:

    "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."

    I couldn't find where this error message comes from and why? is it from my application or from database?

    Any clue?

    Thanks,
    Any clue?

    • Moved byBob BeaucheminMVPTuesday, October 13, 2009 5:20 PMMoved to a more appropriate group (From:.NET Framework inside SQL Server)
    •  

All Replies

  • Tuesday, July 07, 2009 8:43 AMDynamic Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Stack trace: at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)

    at System.Reflection.Assembly.GetTypes()

    at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.LoadTypesFromAssembly(LoadingContext context)

    at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.InternalLoadAssemblyFromCache(LoadingContext context)

    at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.LoadAssemblyFromCache(Assembly assembly, Boolean loadReferencedAssemblies, Dictionary`2 knownAssemblies, Dictionary`2& typesInLoading, List`1& errors)

    at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies)

    at System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyForType(Type type)

    at System.Data.Metadata.Edm.MetadataWorkspace.LoadAssemblyForType(Type type, Assembly callingAssembly)

    at System.Data.Objects.ObjectContext.CreateQuery[T](String queryString, ObjectParameter[] parameters)

    Entity Framework seems to have problem?!!

  • Monday, September 21, 2009 11:53 AMDavid Kiff Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Did you ever work out a solution to this? 
  • Tuesday, October 13, 2009 5:18 PMCinthia Junguitu Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I have the same problem Can you help me??


    Cinthia Junguitu - TCS
  • Tuesday, November 03, 2009 1:51 PMDynamic Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I believe I resolved this issue but I don't remember how exactly!

    I think there was a wrong assembly copied over to my test environment.