PDA

View Full Version : خطای server error in '/' application



amanyakbar
پنج شنبه 10 مرداد 1398, 23:41 عصر
سلام با asp.net ی سایت فروشگاهی دارم میسازم به صورت سه لایه. در حالت اجرا وقتی روی عکس محصول کلیک میکنم باید از دیفالت وارد صفحه singelpage بشه ولی با این خطا روبرو میشم
invalid postbak or call argument.event validattion ...

با اتصال مستقیم و استفاده از کنترل datalist و sqldatasource هیچ مشکلی پیش نمیاد ولی تو حالت سه لایه خطا میده

amanyakbar
شنبه 12 مرداد 1398, 14:23 عصر
کسی نیست جواب بده 😧

amanyakbar
یک شنبه 13 مرداد 1398, 08:39 صبح
سلام دوستان این متن کامل خطا هستش لطفا ی نفر جواب بده خیلی نیاز فوری دارم .نمی دونم شایدم نباید تو این قسمت سوالم رو میپرسیدم آخه هنوز با این سایت خوب آشنا نیستم
Server Error in '/' Application.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.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: 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.

Source Error:



An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



Stack Trace:



[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.]
System.Web.UI.ClientScriptManager.ValidateEvent(St ring uniqueId, String argument) +9818538
System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +108
System.Web.UI.WebControls.ImageButton.RaisePostBac kEvent(String eventArgument) +29
System.Web.UI.WebControls.ImageButton.System.Web.U I.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +15
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1639




Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0

Mahmoud.Afrad
یک شنبه 20 مرداد 1398, 00:23 صبح
ربطی به sql ندارد. در بخش asp.net بپرسید..