Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7796275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:19:28+00:00 2026-06-01T23:19:28+00:00

I help develop a relatively high traffic web application that uses ASP.NET WebForms. Although

  • 0

I help develop a relatively high traffic web application that uses ASP.NET WebForms. Although our use of viewstate is relatively small, we do require it currently.

When deploying a change to the main masterpage, we frequently cause currently connected users to receive an error when they next issue a POST request. The reason for this is that the viewstate tree that exists in their POST request no longer matches what the server expects to be posted. Since we are a web application, many of our pages do POST.

The full error is of course:

Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

Naturally, this is highly frustrating for our users. At the moment, we try to:

  1. Minimize changes to the masterpage (at least, changes which involve server controls)
  2. Deploy in low traffic periods

I have thought about doing tricks with load balancer affinity to try force newly logging in users to the newly deployed version, while keeping currently logged in users on the old version – but this seems hugely complex and maintaining multiple codebases on production isn’t really where I want to go.

I appreciate the technology isn’t really our friend here, but just wondered if anyone had any tips or techniques they use to mitigate this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:19:30+00:00Added an answer on June 1, 2026 at 11:19 pm

    What I did for something similar: I turned off Viewstate, and created a hidden field in the master page which encrypted a guid and date and time. I used this guid and date and time to reference some values in a shared cache.

    The data was small and transient and didn’t need to be kept around very long. And depending on volume and how long you can keep that cache data around, it’s also possible to see how long people ‘stick’ to pages.

    There are plenty of open source shared cache solutions that are tuned specifically for this type of role.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please help me to clear my doubt. I develop an application that performs uninstall
Good Evening All, A client has asked that I develop a web application as
I want to develop a relatively simple application that calculates some value based on
I wish to develop a sms application in C#.net. So please help me by
Help! I'm using the ASP.Net Login control on a Login page, but the Login
Any software simulator that can help to develop Android app without an actual phone?
I am willing to develop an iPhone application that allows user to be up
is there any objective c frameworks/code base that help you to develop a rss
I am .net developer. I want to develop an application for mobile devices. As
What tutorials and libraries are available which can help beginners to develop 2D and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.