错误消息'无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。我使用Entity Framework,SQL Server 2000,Visual Studio 2008和Enterprise Library 开发了一个应用程序。它在本地工作得非常好,但是当我将项目部署到我们的测试环境时,我收到以下错误:无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息堆栈跟踪:在System.Reflection.Module._GetTypesInternal(StackCrawlMark和stackMark)在System.Reflection.Assembly.GetTypes()at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.LoadTypesFromAssembly(LoadingContext context)在System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.InternalLoadAssemblyFromCache(LoadingContext context)at System.Data.Metadata.Edm.ObjectItemCollection.AssemblyCacheEntry.LoadAssemblyFromCache(Assembly assembly,Boolean loadReferencedAssemblies,Dictionary 2 knownAssemblies, Dictionary2&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)实体框架似乎有问题,任何线索如何修复它?
- 3 回答
- 0 关注
- 3896 浏览
添加回答
举报
0/150
提交
取消