[英]System.TypeLoadException Method 'GetX' in type 'MyNamespace.MyType' from assembly 'myAssembly' does not have an implementation
I am getting a System.TypeLoadException whenever I call the assembly.GetExportedTypes() method on a dynmically loaded assembly. 每当我在动态加载的程序集上调用assembly.GetExportedTypes()方法时,都会得到System.TypeLoadException。 I have done my homework and looked all over the fusion logs with nothing meanigful what so ever. 我已经完成作业,并在融合日志中四处张望,却丝毫不动摇。 I even opened the target assembly/DLL file and found the GetX() method implementation so I am not sure what is happening exactly. 我什至打开了目标程序集/ DLL文件并找到了GetX()方法实现,所以我不确定到底发生了什么。 And it is not cached in the GAC or loading an older version as am using the probing app config element. 而且它不会像使用探测应用程序配置元素一样缓存在GAC中或加载较旧的版本。
Any ideas what is going on? 有什么想法吗?
原来,问题是将同一程序集加载到一个以上的应用程序域中,这会导致各种运行时错误,更多信息请参见此处。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.