Fix: 'Unable to load one or more of the requested types' Errors
来源:互联网 发布:手机看病软件 编辑:程序博客网 时间:2024/05/20 14:19
Fix: 'Unable to load one or more of the requested types' Errors
A long time ago, I reported on an intermittent ‘Could not load file or assembly‘ bug where ASP.NET 4 was encountering a bizarre error on start-up in System.Reflection.RuntimeModule.GetTypes(RuntimeModule module). I neglected to post a follow-up here.
The workaround is to always set the ContextTypeName property in your EntityDataSource. That is, you should set the ContextTypeName="ProjectNameNameSpace.EntityContainerName"
Here's an example of some mark-up:
<asp:EntityDataSource ID="edsCategoryTypesFilter" runat="server" ConnectionString="name=OfficeBookDBEntities1"
ContextTypeName="OfficeBook.OfficeBookDBEntities1" DefaultContainerName="OfficeBookDBEntities1"
OrderBy="it.CategoryName" EntitySetName="AccountTypeCategories" EntityTypeFilter="AccountTypeCategories">
</asp:EntityDataSource>
原文链接:http://weblogs.asp.net/kencox/archive/2011/06/08/fix-unable-to-load-one-or-more-of-the-requested-types-errors.aspx?CommentPosted=true#commentmessage
- Fix: 'Unable to load one or more of the requested types' Errors
- 让人哭笑不得的“Unable to load one or more of the types in the assembly”问题的解决!
- System.Data - System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the r
- magento:One or more of the Cache Types are invalidated
- Maven之Unable to load the mojo 'resources' (or one of its required components)
- ERROR 1269 (HY000): Can't revoke all privileges for one or more of the requested users
- We are unable to complete the review of your app since one or more of your In App Purchases have not
- 当用到反射的程序部署时出现System.Data - System.Reflection.ReflectionTypeLoadException: Unable to load one or more
- PB报unable to load the requested database interface错误
- PowerBuilder经典错误unable to load the requested database interface
- Render errors:One or more layouts are missing the layout_width or layout_height attributes
- eclipse生成Webservice提示does not eomply to one or more requiremets of the JAX-RPC 1.1 specification
- One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding y
- The given filter instance must implement one or more of the following filter interfaces
- How to know whether the attribute belongs to one types of productin Magento?
- Could not load file or assembly '***' or one of its does not match the assembly reference
- Failed to instantiate one or more classes
- one or more listeners failed to start
- 4.在二元树中找出和为某一值的所有路径
- 一些关于Launcher的文章
- 程序员发展:机会远比钱重要
- 跟我一起写 Makefile(六)
- 2011年 C++程序设计
- Fix: 'Unable to load one or more of the requested types' Errors
- 如果控制pop弹出的页面层数
- 删除结尾字符串
- linux 信号量
- 2011年 C++程序设计
- 华为笔试题
- ORACLE SQL优化
- NOSQL开源数据库是一个不错的积累方向?
- windows process activation service不能安装或启动的解决办法