ASP.NET app having viewstate corrupted every few minutes -


I'm having trouble with a web app that I'm getting started by users often getting the following error :

Verification Mac verification failed. If this application is hosted by a web form or cluster, make sure that the configuration specifies the same verification key and verification algorithm. AutoGrenate can not be used in a cluster.

The problem is that it is not a cluster - it's a single Windows 2003 server, after digging around, it seems that appears in webconfig the machine's < Some additional properties of the / strong> section and the Pages command fix this error:

  & lt; Machine validation key = 'machine key suspicious' decryption key = 'decryption key snippet' verification = 'SHA1' / & gt; & Lt; Validate pages validate security = "true" enabled EventValidation = "false" & gt;  

My web After changing these two things in the config, the error goes away, but now I have a new problem - my visibility is invalid rather than an error, the app simply "forgets" which is my user, and them Returns to the login page Now, users are browsing through the application, and then they are unexpectedly sent to the login page, even if they are already logged in for a few minutesAlthough I can not force to do this, usually it happens during 10-12 visits to different pages, many times

I liked an offer for this - did anyone know what else could be a verdict error on a server, or what can I do to make sure it's properly valid?

It seems though the worker is recycling the process itself (to assume that you are in the position of the session The process is deposited). Choosing a certain key means that whenever the process is returned, the viewstate is valid, but you have lost the session state. You can try to store session state in a database, but I'm more concerned about fixing the underlying problem. Does your application suddenly allocate some amount of memory or anything like that? Is there something suspicious in the event log?


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -