Subscribe in Bloglines
Add to Google Subscribe in NewsGator Online

What is 2signals.com?

You have reached 2signals, written by Derek Hatchard and Jordan Lutes. We are software developers and business owners / entrepreneurs talking about what is happening in the software industry and on the Internet.

We are interested in the trends and happenings at the intersections of business and technology. Sometimes we agree, sometimes we disagree. This is the forum for our discussions.

Feel free to comment on anything we say whether you agree or disagree with one (or both!) of us. Keep the comments clean and family-friendly. We reserve the right to remove comments deemed to be inappropriate or mean-spirited.

Jordan is a software consultant and entrepreneur. Derek is the senior solution architect at ArdentDev.com, a mentoring and consulting company. Derek is also a Microsoft Regional Director.


On this page....
.Net Web Farming

Search this site


Archives

Navigation

Categories

Disclaimer
The opinions expressed in this site are those of the individual authors and do not necessarily represent the official view of their clients or employers, including Ardent Development and its employees, subsidiaries, partners, or customers.

© Copyright 2008, 2signals.com

Send mail to the author(s) E-mail



This blog has moved to www.derekhat.com.

Wednesday, May 10, 2006

An issue that when we ran into while trying to cluster 2 Asp.net boxes:

When a given session changed between boxes, the

[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData (Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195
System.Web.UI.LosFormatter.Deserialize(String input) +60

This occurred when the second machine was attempting to decrypt the viewstate created by the first.  Since  machine key used in the encryption/decryption process is not the same on both boxes, it fails.  To fix this issue, add a machinekey tag to the system.web section of the web.config on both machines.  To generate a proper machinekey tag, use the following utility: 

http://www.aspnetresources.com/tools/keycreator.aspx

Posted by jordan lutes 5/10/2006 1:54:03 AM (GMT Standard Time, UTC+00:00)
#   Disclaimer  |   |