当前位置:编程学习 > C#/ASP.NET >>

程序发布到服务器出现未将对象设置对象实例错误

我的发布程序在公司服务器server2003 上发布没问题
发布到另外一台服务器,上传文件后出现下面的错误

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.  

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
   PurpleStar.Office.UI.PageFrame.Forms.OA_AddNew.Page_Load(Object sender, EventArgs e) +840
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 




但文件上传成功 --------------------编程问答-------------------- 有没有配置虚拟目录,有没有访问权限,
从上面的代码看不错误信息 --------------------编程问答-------------------- 访问权限已经配置到Everyone 完全控制了

发布程序在本地好几个电脑都试过没有问题

当放到服务器上上传文件后会出现错误,但从新登陆进去,文件也上传成功了。
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,