请问:Object reference not set to an instance of an object. 什么原因造成?
新年好!我有一个用asp.net 1.0做的网站, 平时测试都好好的,为什么上线后会有这样的错误:
Source:
System.Web
TargetSite:
Int32 GetStringHashCode(System.String)
Exception Message:
Object reference not set to an instance of an object.
Stack Trace:
at System.Web.Util.StringUtil.GetStringHashCode(String s) at System.Web.UI.ClientScriptManager.EnsureEventValidationFieldLoaded() at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) at System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) at System.Web.UI.HtmlControls.HtmlInputHidden.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.HtmlControls.HtmlInputHidden.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
先谢谢各位!解决就结贴!