tommy382
  •  tommy382
  • 100% (Exalted)
  • YAF Commander Topic Starter
2010-10-08T07:09:41Z
I saw quite a few of these in the logs. Any idea on how to fix?

System.ArgumentException: Invalid postback or callback argument.  Event validation is enabled using  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.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)
Sponsor
tommy382
  •  tommy382
  • 100% (Exalted)
  • YAF Commander Topic Starter
2010-10-13T18:47:55Z
I have a fix for this issue. It has been tested in the last 7 days and the fix looks solid so far. I'm just surprised that no one else has this issue or care about the stuffs in the log?
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2010-10-14T11:45:42Z
What was your fix? Turn event validation off?
tommy382
  •  tommy382
  • 100% (Exalted)
  • YAF Commander Topic Starter
2010-10-15T03:02:45Z
Jaben wrote:

What was your fix? Turn event validation off?


Yup. Let me know if you have a more secure fix.

<pages validateRequest="false" smartNavigation="false" enableEventValidation="false">
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2010-10-15T19:25:32Z
Not really, no. Event validation is overzealous and useful for poorly coded sites. Also note that YAF uses that default in the web.configs provided.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved