上传服务器后出现未将对象引用设置为对象实例,本地正常
错误如下:Server Error in '/' Application.
--------------------------------------------------------------------------------Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 本地是正常的,具体出错是在读取xml时出错,因为没有提示具体出错位置,不知道是哪错了,而且本地正常,不过本地用的是IIS7.0,服务器上是IIS6.0,我估计和IIS无关,有谁遇到过这个情况吗?
错误如下:Server Error in '/' Application.
--------------------------------------------------------------------------------Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 本地是正常的,具体出错是在读取xml时出错,因为没有提示具体出错位置,不知道是哪错了,而且本地正常,不过本地用的是IIS7.0,服务器上是IIS6.0,我估计和IIS无关,有谁遇到过这个情况吗?
解决方案 »
- “System.Data.DataRow”不包含“Columns”的定义,并且找不到可接受类型为“System.Data.DataRow”
- .net 如何动态生成CheckBox
- 自动填表程序判断网页checkbox是否被选中
- 求C#下载附件时,如何解决“当前安全设置不允许下载该附件”的问题?
- 分页控件不起作用 什么原因啊
- winform 程序 app.config配置该如何写access数据库
- RichTextBox输入文本的时候,如何让其换行?
- C#如何实现开机后自动运行程序.请高手指点.
- 学C#遇到的问题,急需比我强的人解决!
- 用dev的gridcontrol同学有没有遇到这种情况
- 求助!一个小问题,不知道能不能实现??
- 如何把table中的数据全部提交到数据库中?
权限问题
多用try catch 再把 异常输出来判断