Note that there are some explanatory texts on larger screens.

plurals
  1. POEntity Framework LoaderExceptions Unable to load one or more of the requested types
    primarykey
    data
    text
    <p>I have a Web Service that uses the entity framework. When releasing to a test environment, I receive the following error:</p> <p>"Unable to load one or more of the requested types." - Stack trace below...</p> <p>The test box has .NET 3.5 SP 1 installed, and I have read a previous post here:</p> <p><a href="https://stackoverflow.com/questions/1091853/unable-to-load-one-or-more-of-the-requested-types-retrieve-the-loaderexceptions">Error message &#39;Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.&#39;</a></p> <p>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.</p> <p>Is this a known issue? Ive spent an entire morning trying to debug this!! If anyone knows of a solution, please let me know!</p> <pre><code>Retrieve the LoaderExceptions property for more information. at System.Reflection.Module._GetTypesInternal(StackCrawlMark&amp; 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&amp; typesInLoading, List`1&amp; 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.EntityFrameworkRepository`1.GetFiltered(Expression`1 filter, IncludeBuilder`1 includeBuilder) at Comany.Repositories.EntityFrameworkRepository`1.GetFiltered(Expression`1 filter) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload