执行时键入加载异常 [英] Type load exception while executing

查看:72
本文介绍了执行时键入加载异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然在编译时我没有遇到任何错误,但是创建EXE时,尝试运行exe文件时却出现错误:"Type load exception".

我该如何解决?

还有一件事

我正在从xmlconfig文件中读取一个字符串,并分配给其他字符串. (我在编译时和运行时均未收到任何错误)尝试运行具有错误提示的exe,例如无法分配null值". >嘿
公共语言运行库无法找到程序集,程序集中的类型或无法加载类型时,将引发TypeLoadException.

有关详细信息,请参见: http://msdn2.microsoft.com/zh-我们/library/system.typeloadexception(VS.80).aspx [
how can i resolve it ?

and one more thing

i am reading a string from xmlconfig file and assigned to some other string. (i didn''t get any error at compile time and run time ) try to run the exe that has giving error like " null value can not be assigned "

Hey
TypeLoadException is thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type.

For Details, see:
http://msdn2.microsoft.com/en-us/library/system.typeloadexception(VS.80).aspx[^]

Best Luck


这篇关于执行时键入加载异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆