高级问题诞生了,请大哥们指教啊
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.]
store.Page_Load(Object sender, EventArgs e) +639
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
本地无问题,上传后出错`
------解决方案--------------------首先,确认是哪个页面报错
然后,再去查找和这个页面想关联的对象,也就是引用的对象,看看是不是有什么地方的配置和本地有差异,总之这种错误就要一步一步查
------解决方案--------------------将web.config里的
<customErrors mode= "RemoteOnly " /> 改成
<customErrors mode= "Off " />
看是什么错误
------解决方案--------------------配置问题
这问题经常碰到
具体问题具体操作要~!