试图找出异常的解决方案 [英] Trying to find out solution for an Exception

查看:64
本文介绍了试图找出异常的解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,在访问'NImage'对象以便从文件上传控件中查找图像时,

我收到错误为'Neurotec.Images.NImage'的类型初始化程序例外。

我在我的项目中使用了同样的所有dll示例应用程序的生物识别照片检测工具的试用版,并添加了参考资料,仍然无法找到解决方案

In my project, while accessing ‘NImage’ object for finding the image from file upload control,
I am getting the error as "The type initializer for 'Neurotec.Images.NImage' threw an exception."
I have used the same all the dll of sample application of trial version of biometric photo detection tool in my project and added the reference for that ,still I am unable to find the solution

推荐答案

首先使用调试器,然后仔细检查异常对象 - 如果还没有这样做,请放一个托盘... catch 阻止可疑代码,以便您可以详细检查异常。注意它包含的任何内部异常。

如果NImage类是您自己的,那么尝试单步执行构造函数并单步执行代码以查看首次生成异常的位置。如果不是,那么你需要查看你的构造函数参数并确定是否存在任何问题。



抱歉,我们不能做任何事情这对你来说:我们无法运行你的代码!
Start by using the debugger, and closely examine the exception object - if you haven't done so yet, put a tray...catch block round the suspect code so that you can examine the exception in detail. Pay attention to any inner exception it contains.
If the NImage class is your own, then try stepping into the constructor and single step the code to see where the exception is first generated. If it isn't, then you need to look at your constructor parameters and work out if there is anything amiss there.

Sorry, but we can't do any of this for you: we can't run your code!


这篇关于试图找出异常的解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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