我们从其中一个应用程序收到以下错误。错误没有模式,昨晚我们记录了3个,有时候我们没有任何一天。我知道某个地方存在一个问题而且不想忽视它,因为问题本身会变得更糟,而不是更好。
不幸的是,错误消息并不表示导致问题的控件,这是我想要找到的。已阅读有关此主题的许多帖子,但没有任何内容适用。我们没有使用JS来修改下拉列表或其他控件,启用了事件验证,我们没有关闭它,没有嵌套标签,找不到任何格式错误的标签等等。如果我能看到页面上有什么控件触发它,这将有助于减少可能导致它的原因。
我们在错误日志中从异常中捕获以下内容:
InnerException.Message
GetBaseException()
Request.Url
提前致谢!
消息:
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.Control.ValidateEvent(String uniqueID, String eventArgument)
at System.Web.UI.WebControls.TextBox.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)
选中另一个已记录的条目,这个条目不同。它在LinkButton上失败,而上面的那个将TextBox显示为失败点。至少我认为是这样的。这是否意味着更改文本框(对于上面的文本框),触发了回发?我检查了该表单,并且没有使用OnTextChanged配置的文本框。
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.Control.ValidateEvent(String uniqueID, String eventArgument)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)