Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
I constantly get the following two exceptions from the search. I can't realy reproduce locally but the event log is: Object reference not set to an instance of an object.[ 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.WebControls.TextBox.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.WebControls.TextBox.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) ]
and
Exception of type 'System.Web.HttpUnhandledException' was thrown.[ at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.search_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ]
Please help,
Corneliu. |
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
Ok, More details. The problem is happening if you click on the Go button in the search on the main page (the search is the one from the content block) before the page was fully loaded. Because the viewstate was moved at the bottom of the page it is not fully loaded and the post will generate one of these two exceptions. Ofcouse you can't see this when you run locally because the page is loaded very fast. A simple way to fix this would be to disable the search button until the page is fully loaded. I'll do this for my own server asap, but I would like BV to include this in their next SP please. |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
Very interesting. It probably applies to any control that causes a callback or a postback. If that is true then really the entire page (or at least every control that can call/postback) should be disabled. How about using SessionPageStatePersister instead of HiddenFieldPageStatePersister and then let the (much smaller) __VIEWSTATE move back to the top of the page. http://aspadvice.com/blogs/robertb/archive/2005/11/16/13835.aspx |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.