I’ve recently upgraded a dnn installation from 5.6.2 to 6.0.2 and have run into an issue with one of the settings under SearchCrawler Input Settings.
The search crawler is included on every page in the site in a standard header area. The “Enter on Error” switch was checked to ON under the 5.6.2 version, allowing the user to hit the Enter Key to start a search (after entering text into the search box).
When I upgraded to version 6.0.2 we started getting errors like this: “Event Validation Error: Control that submitted the post back is not registered with the Client Script Manager”. I understand that this is because this newer version of DNN has EVENTVALIDATION turned on. The entire error is shown below.
I have looked at the SearchCrawler Input Settings on several pages and found the “Search On Enter” checked – even though this was checked we still were getting the event validation error. It’s expected that the client side markup for the search crawler input control to include javascript to allow use of the Enter Key under EVENTVALIDATION
As a test, I UNCHECKED the “Search On Enter” box for several instances of the control (on different pages) and found that the search went through a-ok. It seems that having the “Search On Enter” unchecked should disable the Enter Key.
If you could investigate and help us resolve this issue, we’d appreciate it.
AssemblyVersion: 6.0.2
PortalID: 0
PortalName:***********************************
UserID: 15
UserName: *************
ActiveTabID: 175
ActiveTabName: Profile
RawURL: /Our-People/Profile/id/53/Matthew-Anderson.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://********/Our-People/Profile/id/53/Matthew-Anderson.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: d844104b-f427-472c-8447-efdc3d93cf85
InnerException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.ClientScriptManager.ValidateEvent
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. ---> System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: **********