views:

446

answers:

1

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:

http://stackoverflow.com/questions/1091853/unable-to-load-one-or-more-of-the-requested-types-retrieve-the-loaderexceptions

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, Dictionary2& 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.EntityFrameworkRepository1.GetQuery() at Comany.Repositories.EntityFrameworkRepository1.GetFiltered(Expression1 filter, IncludeBuilder1 includeBuilder) at Comany.Repositories.EntityFrameworkRepository1.GetFiltered(Expression`1 filter)

+1  A: 

As the top line of the stack says:

Retrieve the LoaderExceptions property for more information.

You can find this by examining the exception in the debugger.

Craig Stuntz