Error "Unable to validate data. at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData"
I periodically get the following error reported in the system log. When it happens, Gemini contiuously will send me to the home screen when clicking on links in projects or saving comments.
Gemini is running in a Windows 2008 R2/IIS 7.5 web farm with content loaded on a UNC share. Machine keys were set to be the same in both machines in the farm. The second machien in the farm is set to a low wieght and I beleive these errors are happening when connecting to the primary machine.
Eventually, the errors clear up and I'm able to use the system fine. Using IE 9.
User56967
· 1 |
|
Saturday, May 14, 2011, 12:26:15 AM |
0
|
Also, this is Gemini 4.0 build 2980 |
||||
|
0
|
Are you using state server for session management? |
||||
|
0
|
Initially we were using SQL for state server and then it was turned off for some reason. I will retry using this and see if that helps. |
||||
|
0
|
Changed to SQL server for session state and still getting the error occasionally. Confirmed that machine keys are same on both web servers in the farm also. Unable to validate data. at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo, Boolean signData) at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) at CounterSoft.Gemini.Presenter.GeminiHttpModule.Application_AuthenticateRequest(Object source, EventArgs e) Any other ideas. |
||||
|
0
|
We are also using Windows authentication. |
||||
|
0
|
Is your web.config's enableViewStateMac set to true? How often does it occur? When it goes away, will it comeback at any point or after a few minutes? |
||||
|
0
|
enableViewStateMac is set to True. I'll try setting it to false to test. This problem occurs througout the day randomly. For me, it will occur every request, then sometimes it will let me click through to an issue, try to create a comment then on save it happens and sends me back to main menu. Wait an random ammount of time and it will then not happen any more until the next day. |
||||
|
0
|
I presume this happens to all users and all browsers, correct? |
||||
|
0
|
Yes, I have had it happend with IE 9 and Firefox 4.0. I will monitor log today to see if the error continues. |
||||
|