我在引发异常的网页中加载用户控件:
this.LoadControl(someusercontrol); // throws TypeLoadException
细节 :
System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes ()
...
in /usr/src/packages/BUILD/mono2.4.2.3/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:864
错误信息:
"could not load type 'System.Web.UI.WebControls.WebParts.WebPartsZone from assembly 'System.Web, Version=2.0.0.0 ..."
我知道 WebPartsZone 没有在 System.Web 中实现。我不明白的是为什么它会尝试加载它。我没有在我的网页或我的控件中使用 WebParts。
我怎样才能找到谁(或什么)正在调用/使用 WebPartsZone ?一个简单的“在文件中查找”搜索“webparts”返回没有找到.. 那么接下来呢?
编辑:我正在使用 ajax control toolkit 3.5 .. MOMA 说使用 webparts 对这个程序集发出警告...... asp:Panel 或 asp:UpdatePanel 是否可能在某处使用 webpart?上次我听说,Ajaxcontroltoolkit 在 Mono 下工作,对吧?