2014-02-12 35 views
0

最近我在生产服务器的事件查看器中收到了以下错误。 它每隔5-10分钟出现一次,来自不同的用户主机地址。 我试图通过单击default.aspx页面中的所有链接进行疑难解答,但仍无法重现以下错误。无法在事件查看器中重现错误

任何人都可以给一些建议如何解决以下错误?

Process information: 
Process ID: 18756 
Process name: w3wp.exe 
Account name: NT AUTHORITY\SYSTEM 

Exception information: 
Exception type: ArgumentException 
Exception message: 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.ImageButton.RaisePostBackEvent(String eventArgument) 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 



Request information: 
Request URL: http://domain.com/default.aspx 
Request path: /default.aspx 
User host address: 108.162.208.110 
User: 
Is authenticated: False 
Authentication Type: 
Thread account name: NT AUTHORITY\SYSTEM 

Thread information: 
Thread ID: 8 
Thread account name: NT AUTHORITY\SYSTEM 
Is impersonating: False 
Stack trace: at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) 
at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

回答

0

您得到的错误是因为您在页面或网站级别打开了EventValidation。当你尝试模仿一个用户的事件时发生错误(最可取的是使用javasctipt)。这给了asp.net一个印象,即该事件实际上不是由回发控制触发的。

发生此错误的最可能发生位置是您尝试动态创建某些控件(并且该页面也在使用“更新”面板)。

如果您认为无法更改应用程序的结构,那么您可以考虑在特定页面上禁用事件验证(但在识别页面之前)。

+0

感谢您的回复。但是,我试图在本地机器上运行我的应用程序,并没有产生任何错误。 – My2ndLovE

+0

你最近从一些旧的.net版本迁移? –

+0

不,我唯一的迁移是服务器迁移(数据库服务器) – My2ndLovE

相关问题