简体   繁体   English

程序集“ myAssembly”中类型为“ MyNamespace.MyType”的System.TypeLoadException方法“ GetX”没有实现

[英]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.

相关问题 System.TypeLoadException:方法“get_xxx”没有实现 - System.TypeLoadException: Method 'get_xxx' does not have an implementation Castle Keeps给我一个System.TypeLoadException:方法&#39;myMethod&#39;没有实现? - Castle Keeps giving me a System.TypeLoadException: Method 'myMethod' does not have implementation? System.TypeLoadException:无法从程序集“ x”加载类型“ x”吗? - System.TypeLoadException: Could not load type 'x' from assembly 'x'? System.TypeLoadException:无法从程序集“y”加载类型“x” - System.TypeLoadException: Could not load type 'x' from assembly 'y' 为什么会收到虚假的TypeLoadException“方法 <foo> 在类型上 <bar> 从组装 <baz> 没有实现”? - Why do I get a spurious TypeLoadException “Method <foo> in type <bar> from assembly <baz> does not have an implementation”? System.TypeLoadException:无法从程序集“System.Private.CoreLib”加载类型“System.Object”,因为父级不存在 - System.TypeLoadException: Could not load type 'System.Object' from assembly 'System.Private.CoreLib' because the parent does not exist System.TypeLoadException:无法从程序集mscorlib加载类型&#39;System.Reflection.RuntimeReflectionExtensions&#39; - System.TypeLoadException: Could not load type 'System.Reflection.RuntimeReflectionExtensions' from assembly mscorlib 未处理System.TypeLoadException:无法加载类型,因为该方法没有实现(没有RVA) - System.TypeLoadException was unhandled: Could not load type because the method has no implementation (no RVA) System.TypeLoadException:get_TargetFramework没有实现 - System.TypeLoadException: get_TargetFramework doesn't have an implementation OnConfiguring方法上的System.TypeLoadException - System.TypeLoadException at OnConfiguring method
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM