Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7814879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:20:32+00:00 2026-06-02T05:20:32+00:00

I have an ASP.net 3.5 sp1 web application that is running on IIS6 and

  • 0

I have an ASP.net 3.5 sp1 web application that is running on IIS6 and has the machine and validation keys set in the web config. The application functions correctly on all browsers except safari.

The page loads correctly but when a postback is performed I receive a “Validation of Viewstate MAC failed” error. (Also, the app pool only recycles once a day during the night but this shouldn’t make a difference as the keys are fixed.)

I have found several suggestions on the internet including limiting the size of the viewstate fields via the web config and also disabling Prefetch within safari – non of which have worked.

I have found other posts on Stackoverflow but non of them helped in resolving the issue.

Is this a known issue with safari or has anyone else encountered this problem ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:20:34+00:00Added an answer on June 2, 2026 at 5:20 am

    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.

    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.

    To verify this

    1. 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.
    2. 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.
    3. 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.

    So if you find they are different, you are probably experiencing the problem we were experiencing.

    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

    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.

    We have submitted a bug report to Apple.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET 3.5 SP1 web application that uses a custom JavaScriptConverter. The
I have an asp.net web application using the ReportViewer2008-SP1 controls to display some reports
I have a very simple ASP.NET web application created under Visual Studio 2008 (SP1),
I have asp.net mvc 4 web application project on my server in IIS Directory.
I have a simple ASP.NET 3.5 SP1 Web Forms app... I've added the System.Web.Routing
I have an ASP.NET application which talks to a third-party SOAP web service. My
I have 2 asp.net web applications, one of which is the main application and
I have asp.net application. and I have created mobile version of it which is
Scenario: Take a server running .NET 3.0 and an ASP.NET Web site running in
I have an ASP.NET MVC 3 project that I just created using the project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.