Hi All,
I have a Web Service that uses the entity framework. When releasing to a test environment, I recieve the following error:
"Unable to load one or more of the requested types." - Stack trace below...
The test box has .NET 3.5 SP 1 installed, and I have read a previous post here:
However the answer does not solve it in my case. I have copied and pasted the working copy off my development machine onto the test box to ensure there is not a problem with debug dlls (as the answer suggests), however no luck.
Is this a known issue? Ive spent an entire morning trying to debug this!! If anyone knows of a solution, please let me know!
Thanks,
David
Retrieve the LoaderExceptions property for more information. 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, Dictionary2 knownAssemblies, Dictionary
2& typesInLoading, List1& 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)
at Company.Domain.ICommuicationsEntities.CreateQuery[T](String queryString, ObjectParameter[] parameters)
at Comany.EntityFrameworkRepository
1.GetQuery()
at Comany.Repositories.EntityFrameworkRepository1.GetFiltered(Expression
1 filter, IncludeBuilder1 includeBuilder)
at Comany.Repositories.EntityFrameworkRepository
1.GetFiltered(Expression`1 filter)