“对象引用未设置为对象的实例." [英] "Object reference not set to an instance of an object."

查看:65
本文介绍了“对象引用未设置为对象的实例."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我收到以下错误


对象引用未设置为对象的实例."


在网格中的插入命令中



如何纠正它..

解决方案

简单使用Visual Studio DEBUGGER 可以告诉您原因.只需查看堆栈跟踪并将调试器放在发生此错误的那一行即可.

这将轻松帮助您识别和解决此类错误.

请参阅Microsoft支持:
对象引用未设置为对象的实例" [对象引用未设置为对象的实例" [ Microsoft支持 [

in Insert Command In grid



How to rectify it..

解决方案

A simple use of Visual studio DEBUGGER can tell you the cause. Just look at the stack trace and put a debugger on that line where you''re getting this error.

This will easily help you identify and solve such type of errors.

Refer Microsoft Support:
"Object reference not set to an instance of an object"[^]
"Object reference not set to an instance of an object" [^]

And a search on Microsoft support[^]


use break point to debug then u can know which value is passing in the variable


Please use the breakpoint and debug the code which tell you that from which line you get the error. might be useful in this senario and we will let you know that what exact issue was occured. remember freind this is genric error.

thanks,
Ambesha


这篇关于“对象引用未设置为对象的实例."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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