Safari GMail ViewState problem

I have an application which sends out email to subscriber and users can click on the link within email to get into the web application. I am facing a weird problem that if a user clicks the link to my app from GMail (Mac/Safari), it doesn’t work from second page onwards. It works if you cut and paste URL in Safari window. All other combination works: Mac/Firefox/Gmail, Mac/Safari/Hotmail, Windows OS all combinations. I realized that in the case where it is failing, Safari is sending out stale viewstate (one from the very first page), so on second page even though it got a new viewstate, while submitting it sends out stale viewstate and definitely the server throws error. Try creating the 3 web pages as shown below and then send an email to some gmail account with link to any of these pages. (e.g. www.mysite.com/safariissue/webpage1.aspx ). On submitting the second page WebForm2.aspx, Safari sends out viewstate of WebForm1.aspx. Any help to resolve the issue is appreciated.
Error:
===============================================================================
==============================================================================
Unable to validate data.
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.Web.HttpException: Unable to validate data.
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:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +193
System.Web.UI.LosFormatter.Deserialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1) If this is a cluster, edit <machineKey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 2) Viewstate can only be posted back to the same page. 3) The viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input) +116
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +101
[HttpException (0x80004005): Invalid_Viewstate
Client IP: 15.80.89.148
Port: 50821
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en)
AppleWebKit/418.9 (KHTML, like Gecko) Safari/419.3
ViewState: dDw1OTQ1ODc1NTc7Oz63T1oWJQyGZ7EXIFtw5wB8D9ZRUA==
Http-Referer: http://www.mysite.com/Safariissue/WebForm2.aspx
Path: /Safariissue/WebForm2.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +446
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +438
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
=============================================================================
Source Code:
================================================================================ ===
WebForm1.aspx
<%@ Page language="c#" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<script runat="server">
void ButtonNextClickHandler(object sender, System.EventArgs e)
Response.Redirect("WebForm2.aspx");
</script>
<html>
<body>
<form id="Form1" method="post" runat="server">
<asp:label id="lblLabel" runat="server">Page 1 </asp:label>
<asp:Button id="btnButton" runat="server" OnClick="ButtonNextClickHandler" Text="Next"> </asp:Button>
</form>
</body>
</html>
WebForm2.aspx
<%@ Page language="c#" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<script runat="server">
void ButtonNextClickHandler(object sender, System.EventArgs e)
Response.Redirect("WebForm3.aspx");
</script>
<html>
<body>
<form id="Form1" method="post" runat="server">
<asp:label id="lblLabel2" runat="server">Page 2 </asp:label>
<asp:Button id="btnButton2" runat="server" OnClick="ButtonNextClickHandler" Text="Next"> </asp:Button>
</form>
</body>
</html>
WebForm3.aspx
<%@ Page language="c#" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<script runat="server">
void ButtonNextClickHandler(object sender, System.EventArgs e)
Response.Redirect("WebForm1.aspx");
</script>
<html>
<body>
<form id="Form1" method="post" runat="server">
<asp:label id="lblLabel3" runat="server">Page 3 </asp:label>
<asp:Button id="btnButton3" runat="server" OnClick="ButtonNextClickHandler" Text="Next"> </asp:Button>
</form>
</body>
</html>

Well, I just Reset Safari and that seemed to do the trick. Thanks for the lead!
Dave

Similar Messages

  • Safari is having problem loading messages in gmail. When using other browsers, there is no problem loading and viewing the messages. What is going on? please help!

    safari is having problem loading messages in gmail. When using other browsers, there is no problem loading and viewing the messages. What is going on? please help!

    I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.

  • Safari gmail support gets worse every revision

    gmail is rapidly becoming the email program of choice for many people. i find it incredibly arrogant of the safari development team that existing issues are not only blatantly ignored, but the behaviour of the browser is actually getting worse with every new revision.
    * gmail scrolling problem is still not fixed (old issue)
    in gmail, in conversation view, if you scroll down long conversations that are expanded, either the scrollbar graphic is corrupt, or specific parts of the screen are redrawn improperly. this problem probably occurs on other websites as well. it has been occuring since tiger was released, and probably even before that.
    * twofinger scroll on pbook trackpad within iframes does not work anymore. (new issue in 10.4.4)
    no matter if an iframe has focus, the method of scrolling the window with the trackpad on newer powerbooks only scrolls the entire window, not the window that has focus.
    * enter email address in gmail bar and press tab functionality is broken. (new issue in 10.4.4)
    just enter a few characters of a name in the gmail address bar to see suggestions. press tab and it autocompletes. in previous versions of gmail, you would press tab again to move to the next field (subject line). in this version of safari, it repeats the emailaddress.
    There is NO excuse not to fix this.

    Tom and others,
    The issues that Safari is having with gmail (and not the other way round) are documented pretty well in the Safari bug tracking system already. Most, if not all of them are graphical errors that reside in Safari itself, and NOT in the way Safari parses the pages. If the code on a webpage breaks a scrollbar into two or more parts, visually, that means the application that parses the html/javascript is broken, not the html/javascript itself. Apple is well aware of this problem, but apparently doesn't really care too much about it.
    Gmail is not incompatible with Safari. On the contrary: it runs quite fine. We should be happy that Google goes through the effort of producing Mac compatible versions of their code: most of the web2.0 hype companies don't care. They put up signs saying 'osx version soon' on their site, because nowadays it's good manners to show your love for OSX. Usually it's nothing more than flirting, though. There is, however, no worldwide conspiracy against Macintosh, as you seem to imply in your message.
    Safari just has a few visual rendering errors when displaying the gmail site that are annoying and appear to be part of the browser's inner code. The errors have been around for many revisions, and with recent new revisions, they actually got worse. The gmail code hasn't changed, it's the Safari support for gmail that got worse.
    I was just frustrated with that, because I love Mac and OSX, and I love gmail, and hate to see a winning combination work together poorly.

  • Gmail paste problem

    Whenever I paste text into Gmail it changes the font size to a ridiculously large font (maybe 52 or 56). I do not have the same problem when I try it in Firefox, so I'm trying to figure out why this problem is peculiar to Safari. Does anyone know how to fix this?

    Hi
    Welcome to Apple Discussions
    Which version of Safari and OS X are you using? Which computer model? You can add this information to your post tag by clicking on the "my settings" link on the right side of the forum page and adding that information.
    Do you have Google GearsEnabler installed? There have been problems with Google Gears and Safari 4. Perhaps this is another one.
    Have a look via the Finder in HD>Library>InputManagers folder. If Gears Enabler is installed, drag the file to the desktop, then restart Safari/Gmail. Redo the copy command, then paste.

  • Firefox was working on my new iMac but then, after switching on recently, won't connect to the web – whereas Safari has no problem.

    ===
    Hi
    I bought an iMac a week ago and installed Firefox via Safari. It worked fine for a while but, after a recently switching on, it won't connect to the web whereas Safari has no problems.
    I've tried following the Firefox Help, looking into the iMac firewall, but still no luck.
    I've no idea whether related or not but yesterday I had a system glitch where the iMac stated no wi-fi was installed and only connected via a physical lead to my house router. Also, there was no sound output via Safari. However, after booting up today all seems well – apart from Firefox still not working. It loads the start page but can't access the web.
    I have Little Snitch running, and wonder if that's the culprit... but it's working fine with Safari, seemingly.
    (Finally, how do I stop a dialogue box appearing on start-up saying that "To open “X” you need a Java runtime. Would you like to install one now?)
    Any ideas anyone?
    Cheers
    Rob / Sheffield / UK
    ===

    On the wireless networks that your Mac has had trouble connecting to, do you know which Wireless Security type (WEP, WPA, or WPA2) is being used?
    If it is WEP, one of the problems is that the actual standard relies on a 10 character HEX key for 40bit WEP and a 26 character HEX key for 128bit WEP.   In order to make things easier, vendors use certain algorithms to convert simple alphanumeric passwords (or passphrases) into HEX keys, thus enabling the use of simple easy to remember WEP password rather than lengthy HEX keys. The problem is that different vendors use different algorithms to generate the HEX key and therefore a ASCII password on an AEBS will be hashed differently on a non-Apple client and vice versa.   You may find the following Apple Support article helpful.

  • GMAIL IMAP PROBLEM (can't duplicate mailbox in apple mail)

    I am seriously at my wits end! It has been about a week and I am still having huge problems with my gmail imap account in apple mail. At first, my sent messages were not being imported into apple mail (only about 30 days work). After a bunch of fiddling and trying to fix the problem (deleting the account in apple mail, rehooking up the account, rebuilding the mailbox, switching off IMAP enabling in gmail) the problem has only gotten worse.
    Now, only 1000 emails from gmail are sent into apple mail. I know there is a setting within the gmail prefs to limit the amount of messages in an imap folder 1000 but, I have that turned OFF.
    As of right now my apple mail shows about 1000 messages in my inbox and 250 or so in my sent mail. None of the mail is from before 12/7/10.
    The only thing that seems significant about that date is that I set up another IMAP account on a temporary macbook laptop at a temp job on that day in apple mail (the account has since been deleted when I stopped using the laptop).
    Ugh, this is so annoying and frustrating. I often need to look in my mail archive for old messages/attachments.
    I can't seem to find any help anywhere, but if you can offer me any advice I would really appreciate it!
    L

    Hi,
    I don't know if this is relevant... but…
    Last year, when I set up a second, temporary Gmail IMAP account, I found that all did not jell well together…
    I encountered quite a few problems… sending and receiving… transferring to and from the accounts… and lots of Hangs and Time Outs…
    When I had eventually finished with the second account, I not only deleted it from Mac Mail, but Completely Closed and Deleted it with Gmail.
    Since then I have had no such problems with my single Gmail IMAP account…
    As I said, not sure if this is relevant to your Problem, but thought it might be of interest to you.
    Cheers

  • 3 year old iMac 24 running OS10.7.4.  After it has been on for a day or so, it stops going to sleep and becomes very slow.  This only happens when Safari is running. Quitting Safari solves the problem.  Has anyone else have the same problem?

    3 year old iMac 24 running OS 10.7.4.  After it has been on for a day or so, it stops going to sleep and becomes very slow.  This only happens when Safari is running. Quitting Safari solves the problem.  Has anyone else have the same problem?  Does not happen on MacBookpro only on iMac.

    Hello Albert, see how many of these you can answer...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab, are there a lot of Pageouts?

  • Safari load image problem with iMac Intel core

    I got my new iMac 20" Intel core and system updated everything. I found that Safari cannot load image in my web photo album ( http://fotop.net/nicknick ), all image became "?".
    I can load this page correctly with FireFox and Opera Browser. I also try the iMac 17" PowerPC in my office with the latest version Safari, it also load the album correctly. And I know this web is created and store in a Linux server, the web page coding not written or optimized to IE.
    I've try to reinstall the whole OS X, nothing else installed, the same problem occurred.
    Is it the problem on Intel core? or any setting I can do to overcome it?
    Hope the problem could be solve, I like to use Safari except this problem.
    iMac 20" Intel core   Mac OS X (10.4.5)  

    Well... no - except to ask if your intel imac is connected to the internet in exactly the same way as the ppc imac. If it is, then that's puzzling
    You're right, I'm puzzled by the imac.
    Intel imac is at my home, ppc imac is at my office;
    both using same ISP but different service plan,
    (home:) PPPoE, ADSL modem -> buffalo MIMO wireless router -> intel imac (both direct wire or wireless connect have same result)
    (office:) fixed-ip, ADSL modem -> firewall -> Linksys wireless router -> ppc imac (wireless)
    both network setting with manual assigned IP, gateway and same DNS
    Same result occurred when (1)open box new machine, (2)after updated system, (3)reinstall whole OS with preserve the old setting, (4)reinstall whole OS with erase the whole harddisk option, (5)updated system after the reinstallation.
    I firstly think may be some security setting in imac that blocked the images, but can't found out. I secondly think some html code at this web not work on Safari.
    May someone with same machine help to open this web to see if all intel imac get the same result?

  • Why does Safari have a problem loading images on some websites?

    Safari has a problem loading pages properly or images on certain websites. Apple.com is one of the websites. On my way in here this time it didnt load any images on the front page. I emptied my cache and reloaded the page but that didnt help. Clicked on a broken image that took me to the proper page but without any images. Clicked on a different broken image on to the page and the images load no problem. Click back to the home page images load problem. Clicked on in to support forums and posted this topic.
    Any ideas... it has done this for awhile. Everything is enabled in web content(preferences) Always accept cookies is selected.
    Thanks

    Hi all,
    I occasionally see messages telling me that my software won't let me see the HTML version of an email, but it's there on the page when I open it. This happens mostly with emails from Apple, but have also had a similar message from a few of the photography mags that I subscribe to.
    For my part, I just ignore it. It won't go away, but I just don't let it bother me.

  • Nokia Lumia and gMail account problems

    Hi all 
    I have a Lumia 800 and I come from an iPhone.
    I've noticed, after a week of use, that the gMail sync is not "a real push".
    I've done a lot of test, and the results are not good.
    With the iPhone the mail is noticed immediately, with the Lumia 800 could pass a lot of time.. sometimes 15 minutes!!!
    I've also tried to set the account as an Exchange type, the results are the same!!
    The sync settings are correct: "as item arrives".
    Any suggestion?
    For Nokia and Microsoft: please try hard to solve this issue!!
    I'm really disappointed, besyde the battery problem now the gMail sync problem! 
    LA

    Jon Q at technoBuffalo described a workarround for Gmail in a video which hesays works great using an outlook account, wotrth a try ?
    http://www.technobuffalo.com/software/applications/whats-the-apps-windows-phone-apps/
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Safari page load problems and 10.5.3

    Since I have upgraded to 10.5.3, I am experiencing Safari page load problems on all my user accounts on my 2.0 GHz Core Duo Black MacBook. I have reviewed threads in this forum and that of the Safari forum with no solution that solves the problem. so I post here in hopes of additional expert solution ideas.
    *The Problem:* Since upgrading to 10.5.3 Safari fails to complete page downloads for some, but not all websites. When these same websites are accessed with Firefox there is no problem. With Safari the page load will stop at about 75% completion, or the page will not load at all.
    Here is an example of a webpage that will not complete: http://www.realclearpolitics.com/
    Here is an example of a webpage that will not load at all: http://cherylsguitar.com/site (my wife's business)
    I also have a G4 iMac running 10.4.11 on the same WiFi network that does NOT experience the Safari page load problems. All is good and speedy on this trusty machine.
    *Solutions Attempted:*
    - Deleted plist (with no effect)
    - Re-installed Safari from Leopard disk (with no effect)
    - Scoured User Preferences in Library for offending applications, plug-ins, etc.
    - Reset PRAM
    - Reset and examined cable modem and router (AirPort Extreme 802.11g)
    *Hardware and Network info:*
    - 2.0 GHz Core Duo Black MacBook
    - 2 GB Ram
    - AirPort Extreme Base Station (generation 1) running 802.11g

    Allan Eckert wrote:
    Hi Perry Lehman;
    Have you cleared out your cookies?
    Allan
    Allan,
    Yes. I have reset Safari clearing all but website icons with no effect. I also tried turning of the Safari pop-up blocker with some very limited success. Disabling pop-up blocker will marginally help page load speed for some websites, but others still fail to load at all.
    Thanks for taking time to post.

  • Safari and Java Problem

    Hi,
    I'm having a problem with the newest updates to Safari. This problem did not occur until late december when I installed several updates via Software Update.
    Problem:
    I use a photo uploader on a website from my company (unfortunately I can't give out the URL, as it is protected). But it is similar to many other photo uploader sites - load a Java applet, drag images files into a Java window, the files are added to a upload list and then uploaded.
    Now, if I drag 10 items into the window, only one or two will be added to the list. If I drag them in one at a time, all the images will be added. Previously it was possible to drag as many as one wanted in.
    Now the really irritating part : During the upload, the Java uploader completely hijacks Safari. The window the uploader allways stays active on top. If I open a new tab or window the uploader window will reappear on top and dominate the action. The only way to get anything done while I am uploading photos is to open another browser like Firefox. Safari is completely occupied with the Java program.
    Computer: MBP 2.16 GHz, 2GB RAM, OSX 10.4.11
    Safari 3.0.4
    Java 5.0 (not sure of the revision, but it is the most recent)
    Any help would be greatly appreciated.

    I had similar Java problems with Safari and Firefox. I downloaded Navigator and now can run any Java app I need. One thing that may or may not have had any impact: when installing Nav, it asked if I wanted to import settings from Safari or Firefox. I chose not to import any settings. Works perfectly.

  • Gmail display problems in safari

    hi all -
    using a 2nd gen touch, v. 3.1.2. i'm having some problems displaying gmail and the main google page in safari -- problems in that they don't display at all. i can get to the login screen & log out from a search results screen, but i can't actually see my emails on screen.
    a restore and resetting the ipod haven't solved the problems.
    anyone here having any similar problems, or any suggestions for a fix?
    thanks.

    i've done just that; it's definitely a workable solution.
    the problems seem to be extending beyond gmail/google (honestly, that's the weirdest part to me: the google search page refuses to display) -- when i use en.m.wikipedia, the show/hide buttons for different sections of an entry no longer work.
    i haven't tried a wikipedia app yet & will do so. all the same, it'd be nice to know why these things aren't working in safari anymore.
    thanks for your help.

  • Safari/Mail certificate problem with gmail/google

    Here is my problem:
    I have set-up Mail to use my gmail account through POP. Since yesterday, when I try to get or send mail, mail gives me the error:
    Unable to verify SSL server pop.gmail.com
    Mail was unable to verify the identity of this server, which has a certificate issued to "pop.gmail.com'. The error was:
    You might be connecting to a computer that is pretending to be "pop.gmail.com', and putting your confidential information at risk. Would you like to continue anyway?
    I then have the option to show the certificate,cancel or continue. If I hit Continue, nothing happens and mail set itself to offline. If I force Mail back online (Menu Mailbox/Go Online), when it goes on the next automatic check, it turns back offline. After hours of google search, I also tried the option to show the certificate, then drag the icon of the certificate to the desktop, then open the certificate with Keychain in order to add it to the keychain but this did not work for me, keychain refused to open it and if I double-click it on the desktop it opens as a clipping content. If I change the typre/creator to force Keychain to open it, then I got an error "Unable to import an item".
    I then tried to access gmail within Safari (not through POP) and I got this error when I tried to login:
    Safri cannot establish a secure connection to www.google.com
    At the same time, I had no problem to access it with Firefox. Back to google search, I tried to use Safari debug menu to set the security to "Performs Lax Certificate Checks" and then I could access my gmail with Safari. However the problem persists in Mail.
    I believe this is a system-wide certificate issue (Firefox not affected because of a diffrent handling of certificates?not much knowledge about certificates). I tried all the standard troubleshooting:
    re-boot, logoff, repair permissions, reapply latest security updates, reapply latest OS update, reset Safari, clean-up caches, discarded all mail preferences,clear-up keychain of any google/gmail.
    Finally I also found in my searches to try ro download a certicate from Thawte (ThawtePremiumServerCA.cer) and add it to my keychain but this does not solve the problem.
    Help will be greatly appreciated
    System info: iMac G5 1.6, 1Gb RAM, OS X 10.3.9 (everything up to date according to Software update), internet connection through Airport extreme base station.

    Are you saying that this is a well-recognised issue?
    Can we assume that the reason for not fixing it is that Nokia want people to use Nokia Messaging instead? It came free with my phone and I did try it. It connected & synchronised well but contacts in headers kept appearing in quotes ("") and when I checked my email from my main IMAP client my sent items included incomplete versions of my emails as well as the finished email - as if it was sending drafts.
    I guess I'm sticking with MfE for calendar and IMAP for email...

  • Safari/GMail problem

    For the past two days, whenever I boot Safari and try to go to GMail to retrieve my email, Safari crashes and a trouble report is generated to send to Apple. Otherwise, Safari runs just fine, as it always has, and I can access GMail using Chrome.
    I'm running an early 2009 24-inch iMac with 8gb of RAM and the latest version of OS X -- 10.8.5.
    Is anyone else having this problem? If yes, have you figured out a solution?
    Thanks in advance.
    Dave

    Well, I just Reset Safari and that seemed to do the trick. Thanks for the lead!
    Dave

Maybe you are looking for

  • Bug report iMovie '11 Title, Picture, Transitions Location Duration bug

    In iMovie '11 version 9.0.1 (1095) there is a very annoying bug if you use Norwegian or Dutch. I presume in other languages as well, but in English I can't repeat the bug. Set System Preferences > Language & Text to Nederlands or something else (not

  • Why is time not shown in UWL for items?

    In the task tab of UWL,an attribute named "Sent Date" shows the sent date of items.But if I receive more tasks in one day,it is necessary to show the time too.I found the tooltip of "Sent Date" contained time.Now I want to show it in "Sent Date" or a

  • [SOLVED] mplayer-svn won't compile

    Wanted to try one application that needs svn version of mplayer to run. Well, i'm not able to compile it liba52/imdct_3dnow.h:289: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm' liba52/imdct_3dnow.h:257: error: can't find

  • ATI card + OS driver + multi monitor

    Hello everyone, I'm stuck configuring the RadeonHD drivers for multi monitor setup. The system starts with both screens cloned; logging in is in clone mode too. After that the second display is being turned of (no signal). Using xrandr --auto will en

  • Oracle 8i & Redhat 6.2

    I am setting up the environment to install Oracle on a Dell machine running Redhat 6.2 (kernel 2.2.14-12). Is it a must to change the default settings of SHMMAX, SHMMIN, SHMMNI, SHMSEG, SEMMNI, SEMMSL, SMMNS, SEMOPM and SEMVMS? Thanks, Cesar