473,480 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Asp.Net 2.0 Bug

My testers getting this exception 1% of the time they click button on the
page. This happens in both IE6.0 and FireFox1.5. Any ideas?

System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. --->
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(St ring uniqueId,
String argument)
at System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument)
at System.Web.UI.WebControls.DropDownList.LoadPostDat a(String
postDataKey, NameValueCollection postCollection)
at
System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection
postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData,
Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context
context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.designer_design_aspx.ProcessRequest(HttpContex t context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\26676eb7\92c7e946\App_Web_xzuwxjfw.18.c s:line 0
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)

Mar 23 '06 #1
5 1350
It's not a bug as such it's more of a result of the way ASP.net is designed.
It happens when you are using validation controls and a users initiates a
postback that causes validation before the page has finished rendering. It
is to do with the way that validation makes sure that the form being
submitted is the correct form, i think you can turn it off though but there
are security impications. I will look up more details for you.

"Amelyan" wrote:
My testers getting this exception 1% of the time they click button on the
page. This happens in both IE6.0 and FireFox1.5. Any ideas?

System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. --->
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(St ring uniqueId,
String argument)
at System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument)
at System.Web.UI.WebControls.DropDownList.LoadPostDat a(String
postDataKey, NameValueCollection postCollection)
at
System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection
postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData,
Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context
context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.designer_design_aspx.ProcessRequest(HttpContex t context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\26676eb7\92c7e946\App_Web_xzuwxjfw.18.c s:line 0
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)

Mar 23 '06 #2
the error mean the value posted by the browser for the dropdown, was not one
of the values rendered for the dropdown (the legal list is stored in
viewstate). one way this happens (alluded to in the error) is if
clientscript changes the dropdownlist.

-- bruce (sqlwork.com)

"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:uj**************@TK2MSFTNGP14.phx.gbl...
My testers getting this exception 1% of the time they click button on the
page. This happens in both IE6.0 and FireFox1.5. Any ideas?

System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. --->
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(St ring uniqueId,
String argument)
at System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument)
at System.Web.UI.WebControls.DropDownList.LoadPostDat a(String
postDataKey, NameValueCollection postCollection)
at
System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection
postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData,
Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context
context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.designer_design_aspx.ProcessRequest(HttpContex t context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\26676eb7\92c7e946\App_Web_xzuwxjfw.18.c s:line 0
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)

Mar 23 '06 #3
It is as i mentioned, also caused by submittting the form befoer the page has
finished rendering, which is often why it seems to only occur intermittantly.

"Bruce Barker" wrote:
the error mean the value posted by the browser for the dropdown, was not one
of the values rendered for the dropdown (the legal list is stored in
viewstate). one way this happens (alluded to in the error) is if
clientscript changes the dropdownlist.

-- bruce (sqlwork.com)

"Amelyan" <bamelyan at wi.rr.com> wrote in message
news:uj**************@TK2MSFTNGP14.phx.gbl...
My testers getting this exception 1% of the time they click button on the
page. This happens in both IE6.0 and FireFox1.5. Any ideas?

System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. --->
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(St ring uniqueId,
String argument)
at System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument)
at System.Web.UI.WebControls.DropDownList.LoadPostDat a(String
postDataKey, NameValueCollection postCollection)
at
System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection
postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData,
Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context
context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.designer_design_aspx.ProcessRequest(HttpContex t context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\26676eb7\92c7e946\App_Web_xzuwxjfw.18.c s:line 0
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)


Mar 23 '06 #4
Right more details ...

what i think is causing your problem as i said is users submitting the form
before the page has finished rendering. If you look in the page source you
will see a line like this

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION"
value="vWAR/uYD2Ch7zyqe3iUJ9Ps4gQl9v0pxb9gocy9ysCsZSyhqM3p7A8S I2peXQ2H1sGC2ol7HqO7WBOgncF4Tfsada7jCpBiWABu9GXW7a T22juKw/reGyery5NTuafw7BUAYot3S3W2bWTSQ6Ir4pRdMYBznitC6S2L KrgxfgMJrJm2fxE3G3T8xMcTz2qGcjzKzZGf2KL8KrTFN47Pkw NJT9o72dnrAMbZCFK84NgUuQkQde5qDktc+xXewvSvr+XgrprC SNzCnaAff4btDoLTXWY/LyK6bxkK3YbKA7RGxc80tENdIgTejDFPNGp6XWxRlKPvaKPJlB xWP/jrq923PgNdXNmztefHG/tfyTDVbWvvxABo/QBuq3Dp/FY/789/TZFrAvzLVwvZTc440t/82QhV/6iiBfrXsSyP84Fo=" />

This is what the validator uses to make sure that the the controlls being
submitted are from the correct form and it renders after all the other
controls, if your use submits the form before this has rendered, then you
will get the error you are experiencing. This is why it seems to happen
ocaisionally in testing.

"Amelyan" wrote:
My testers getting this exception 1% of the time they click button on the
page. This happens in both IE6.0 and FireFox1.5. Any ideas?

System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. --->
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(St ring uniqueId,
String argument)
at System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument)
at System.Web.UI.WebControls.DropDownList.LoadPostDat a(String
postDataKey, NameValueCollection postCollection)
at
System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection
postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData,
Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context
context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.designer_design_aspx.ProcessRequest(HttpContex t context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\26676eb7\92c7e946\App_Web_xzuwxjfw.18.c s:line 0
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)

Mar 24 '06 #5
Thank your resopnse. To me, this kind of behaviour constitutes a bug in
Asp.Net 2.0. It should never crash on user. Anyway, I will disable this
validation and wait for Asp.Net Team to come up with some sort of fix to
handle this more gracefully.

Thanks again.
"clickon" <cl*****@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
Right more details ...

what i think is causing your problem as i said is users submitting the
form
before the page has finished rendering. If you look in the page source
you
will see a line like this

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION"
value="vWAR/uYD2Ch7zyqe3iUJ9Ps4gQl9v0pxb9gocy9ysCsZSyhqM3p7A8S I2peXQ2H1sGC2ol7HqO7WBOgncF4Tfsada7jCpBiWABu9GXW7a T22juKw/reGyery5NTuafw7BUAYot3S3W2bWTSQ6Ir4pRdMYBznitC6S2L KrgxfgMJrJm2fxE3G3T8xMcTz2qGcjzKzZGf2KL8KrTFN47Pkw NJT9o72dnrAMbZCFK84NgUuQkQde5qDktc+xXewvSvr+XgrprC SNzCnaAff4btDoLTXWY/LyK6bxkK3YbKA7RGxc80tENdIgTejDFPNGp6XWxRlKPvaKPJlB xWP/jrq923PgNdXNmztefHG/tfyTDVbWvvxABo/QBuq3Dp/FY/789/TZFrAvzLVwvZTc440t/82QhV/6iiBfrXsSyP84Fo="
/>

This is what the validator uses to make sure that the the controlls being
submitted are from the correct form and it renders after all the other
controls, if your use submits the form before this has rendered, then you
will get the error you are experiencing. This is why it seems to happen
ocaisionally in testing.

"Amelyan" wrote:
My testers getting this exception 1% of the time they click button on the
page. This happens in both IE6.0 and FireFox1.5. Any ideas?

System.Web.HttpUnhandledException: Exception of type
'System.Web.HttpUnhandledException' was thrown. --->
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(St ring uniqueId,
String argument)
at System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument)
at System.Web.UI.WebControls.DropDownList.LoadPostDat a(String
postDataKey, NameValueCollection postCollection)
at
System.Web.UI.WebControls.DropDownList.System.Web. UI.IPostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection
postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData,
Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context
context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.designer_design_aspx.ProcessRequest(HttpContex t context) in
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\root\26676eb7\92c7e946\App_Web_xzuwxjfw.18.c s:line 0
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step,
Boolean& completedSynchronously)

Mar 24 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11162
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
5764
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
22950
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
8424
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
8520
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
18206
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
6767
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
31332
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
23520
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
7048
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6966
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5344
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4787
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2999
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.