Lost session and Invalid Viewstate MAC

Discussion in 'General troubleshooting' started by extorted, Feb 1, 2012.

  1. Hello fellow netizens!

    I have two issues, discussed at length here in the forums. If you search the forums for "session" or "viewstate", you will know! I have a suspicion that the two issues may be related. More details:

    I have previously submitted a ticket about the session issue. What the techies told me was that the application pool was being re-started and I was given the 3 reasons why this may happen. You see these reasons quoted quite often @ Winhost.

    I enabled raw logs, but really, I'm not that advanced to track my programmer shortcomings :confused:

    What I would like / appreciate is for someone to suggest how I can monitor memory usage of my application so as to, for starts, determine if I am exceeding the (in)famous 100MB memory limit. This monitoring needs to happen locally as I already know that monitoring on Winhost is not possible due to the shared environment hosting; such monitoring needs higher permissions which I can never obtain.

    With thanks

    Soon-to-be-retired-programmer-from-sunny-Malta
    :)
     
    Last edited by a moderator: Oct 14, 2015
  2. had this similar problem

    you may have already found this suggestion but i had this same problem
    and read that setting a machine key in the web config would resolve the issue.

    i wasnt too sure about that, but i tried it, and in my case it resolved my problem with getting the error you are getting.

    i went to this link http://aspnetresources.com/tools/machineKey

    generated a key, copied it and pasted it in my web config and problem dissapeared. my particular error kept showing up when trying to page through a datagrid, after several pages, it would throw the error.

    Ive only been with Winhost for 1 day, i struggled with this yesterday, today its finding the magic combination to get my silverlight 4 to call my wcf and query the DB. ugh.

    Hope this helps.
     
    Last edited by a moderator: Oct 14, 2015
  3. Thanks pcbjc. I tried the machinekey trick. Still didn't work out for me. I had to rely on cookies to do the job and forget sessions. Not an ideal solution but it's the only thing that I could do. You seem to have had more luck than me!
     

Share This Page