Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>We had a similar problem start on Mar 12, 2012 which is the day tha Safari 5.1.4 was released. The problem occurs in Safari 5.1.5 as well. It happens on both windows and mac versions of safari.</p> <p>In our case the viewstate being submit by Safari was a complete viewstate, unfortunately it was for the previous page rather than the page being posted.</p> <p>To verify this</p> <ol> <li>First before submitting, check the view state by viewing source on the page experiencing the problem. This is typically base64 encoded and may be encrypted. If your site has it encrypted you may need to turn this off to check the view state. You can search the internet for a base 64 decoder, there are several sites that you can paste the __Viewstate string into and decode it.</li> <li>Submit the page and recieve the error. If you get the custom error in the browser it will show you the viewstate value that was recieved by the server. If not go to the applicaiton event log on the server and find the logged error message. Decode the viewstate in the message in the same way as you did in step 1.</li> <li>Examine the contents of both viewstates, usually you will be able to tell by the data whether the viewstate belongs to the page being posted to or some other page.</li> </ol> <p>So if you find they are different, you are probably experiencing the problem we were experiencing.</p> <p>In our case the offending code that caused the problem was actually on the previous page. In PageOne we hooked in window.onload event and were calling form[0].submit. The server responded with a 302 redirect to PageTwo.aspx. The browser properly responded by performing a GET of Page2.aspx. When the user pressed the submit button on PageTwo.aspx the validation error occurs, in our case safari was submitting the value of the viewstate for the previous page, pageone.aspx</p> <p>In our case we worked around the problem by calling setTimeout("DoWork()",10); in the window.onload event. Then put our code in the DoWork() function.</p> <p>We have submitted a bug report to Apple.</p> <p>Hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload