一个奇怪的问题 [英] A strange question

查看:81
本文介绍了一个奇怪的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

System.NullReferenceException: Object reference not set to an instance of an object. at SWTOrange.BasePage2.OnInit (EventArgs e)错误.

首次单击该菜单时,带有IE的网站没有任何问题,但是将来会出现此错误.与其他浏览器一起使用,例如:Google.第一次直接向错误报告

System.NullReferenceException: Object reference not set to an instance of an object. at SWTOrange.BasePage2.OnInit (EventArgs e) errors.

Web site with IE for the first time you click on that menu, there is no problem but in the future for this error. With other browsers such as: Google. Report directly to the error the first time

推荐答案

嗯,您的问题还不清楚.但是这个错误是众所周知的,并且是向前发展的.某些对象的值为null,但是您正在尝试在代码中使用它.对可能是原因的对象进行空检查.
一个简单的DEBUGGER使用可以告诉您错误在哪里.试试吧!
Well, your question is not quite clear. But the error is quite known and straigt forward. There is certain object whose value is null and yet you are trying to use it in your code. Put null-checks for objects that can be the reason.
A simple DEBUGGER use can tell you where is the error. just try!


这篇关于一个奇怪的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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