ASP.NET Viewstate validation – ASP.NET 1.1 vs. ASP.NET 3.5

asp.netvalidationviewstate

we're in the process of migrating our web app from ASP.NET 1.1 to ASP.NET 3.5. Our app runs on multiple servers through DNS round robin, so every browser request may end up on a different server. We do have a in our web.config to prevent validation errors.

However, our plan was to migrate one server at a time. Now it looks like when a user loads the page on a 1.1. server and then the page ends up on a 3.5 server on postback, the viewstate validation fails.

I haven't been able to find anything on the web regarding this issue – it's just my guess that the viewstate validation is incompatible between 1.1. and 3.5, i.e. a viewstate generated by 1.1 will not validate on 3.5 even with the same machineKey and vice versa.

Can anyone confirm this suspicion?

Thanks

Best Answer

Use sticky sessions as mentioned in this similar post. This will keep users on the same machine for a period of time.

I don't think it wise to allow a single user to hit three different versions of the framework in a single session.

Related Topic