错误:对象引用未设置为对象的实例 [英] error: object reference not set to an instace of an object

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

问题描述

部署网站并进一步执行后,我得到此错误

after deploying the website,and further executing I am getting this error

推荐答案

如消息所示,如果您尝试访问属性或方法,则会发生此错误为null且尚未实例化的对象.尝试调试代码以确定哪个对象可能为空.
As the message suggests, this error will occur if you try access a property or method of an object that is null and has not been instantiated. Trying debugging through your code to figure out which object could be null.


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

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