当使用Relection-Getting加载Dll时,“调用目标已抛出异常". [英] while Loading the Dll using Relection-Getting "Exception has been thrown by the target of an invocation"

查看:67
本文介绍了当使用Relection-Getting加载Dll时,“调用目标已抛出异常".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试使用反射在运行时加载Dll,并且得到调用目标已引发异常".
我已经看到了该异常的Innermessage,并且说我的表单中的一个控件丢失了.当我在Reflector中看到dll时,我能够看到该控件.我不知道我如何得到该消息.
我已经尝试在应用程序中使用最新的dll.但是,无法解决.

谁能告诉我如何继续解决这个问题.

谢谢,
M.Srikrishna Murthy

Hi,

I am trying to load a Dll at runtime using Reflection and I am getting the "Exception has been thrown by the target of an invocation" .
I have seen the Innermessage of that exception and it is saying that one control in my form is missed.when I see my dll in the Reflector ,I am able to see the control.I dont know how I am getting that message.
I have tried with latest dlls in my application.But,not able to solve.

Can anyone please tell me how to go ahead in this issue.

Thanks,
M.Srikrishna Murthy

推荐答案

我看到的最可能的原因是不存在从属程序集或版本不正确.
The most likely cause I''ve seen is a dependent assembly not being present or not the proper version.


这篇关于当使用Relection-Getting加载Dll时,“调用目标已抛出异常".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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