WwW.CaIHonGWeNXue
Objectreferencenotsettoaninstanceofanobject.
ServerErrorin-/-Application.
Objectreferencenotsettoaninstanceofanobject.
Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktraceformoreinformationabouttheerrorandwhereitoriginatedinthecode.
ExceptionDetails:System.Data.DataException:Objectreferencenotsettoaninstanceofanobject.
SourceError:
Thesourcecodethatgeneratedthisunhandledexceptioncanonlybeshownwhencompiledindebugmode.Toenablethis,pleasefollowoneofthebelowsteps,thenrequesttheURL:
1.AddaDebug=truedirectiveatthetopofthefilethatgeneratedtheerror.Example:
%@PageLanguage=C#Debug=true%
or:
2)Addthefollowingsectiontotheconfigurationfileofyourapplication:
configuration
system.web
compilationdebug=true/
/system.web
/configuration
Notethatthissecondtechniquewillcauseallfileswithinagivenapplicationtobecompiledindebugmode.Thefirsttechniquewillcauseonlythatparticularfiletobecompiledindebugmode.
Important:Runningapplicationsindebugmodedoesincuramemory/performanceoverhead.Youshouldmakesurethatanapplicationhasdebuggingdisabledbeforedeployingintoproductionscenario.
StackTrace:
Snda.CMFUmon.ExceptionManager.HandleException+84
Snda.CMFU.Wemon.ErrorPage1.OnError+31
System.Web.UI.Page.HandleError+84
System.ain+6776
System.Web.UI.Page.ProcessRequest+242
System.Web.UI.Page.ProcessRequest+21
System.Web.UI.Page.ProcessRequest+49
ASP.errorpage_aspx.ProcessRequest+4
System.Web.HttpServerUtility.ExecuteInternal+1116
Snda.CMFUmon.ExceptionManager.HandleException+84
Snda.CMFU.Web.Global.Application_OnError+279
VersionInformation:MicrosoftFrameworkVersion:2.0.50727.3053;ASPVersion:2.0.50727.3053