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

  • Home
  • SEARCH
  • 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 6153673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:07:54+00:00 2026-05-23T20:07:54+00:00

We have an asp.net webpage that uses viewstate. During a lengthy operation (that takes

  • 0

We have an asp.net webpage that uses viewstate. During a lengthy operation (that takes more than 12 minutes) there happens a view state related error as listed below.

The controls from the page gets vanished. 
It simply writes on the screens as 
"input type=”hidden” name= ”_VIEWSTATE” id= ”_VIEWSTATE” value =’/wEPDw…” 

When the viewstate is avoided, this is working fine. One more observation is that when we connect to the VPN and run it as intranet, it is working fine even with viewstate.

I have read from Does viewstate expire? that “Even though ViewState won’t expire, it can become invalid if a different autogenerated key is used to decrypt ViewState, such as after an IIS Reset, redeploying an application, or hitting a different server in a web farm.”

• We have a load balancer (with two web servers)

• We are not restarting IIS

• We are not redeploying the application during the test

So, what are the possible reasons for this error? How can we resolve it without removing viewstate?

Can this be related to Proxy server truncating View State ? How to confirm that whether it is a problem caused by proxy or firewall?

Thanks

Lijo

  • 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-05-23T20:07:54+00:00Added an answer on May 23, 2026 at 8:07 pm

    We have a load balancer (with two web servers)

    So ensure that you have specified the same machine keys on both your web servers instead of the default autogenerated value. You could also specify this value in the web.config of your application:

    <machineKey 
        validationKey="21F090935F6..."           
        decryptionKey="ABAA84D7EC4..."
        validation="SHA1"
        decryption="AES"
    />
    

    This will ensure that no matter which web server encrypted the viewstate the other will be able to decrypt it. You could also use an online tool for generating machine keys.

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

Sidebar

Related Questions

I have an ASP.NET webpage running under IIS that uses a common assembly that
I have a asp.net webpage that contain a custom login control like this: <div
I have an asp.net webpage that only contains a textbox and a button. The
I have an ASP.NET 4 webpage that contains an update panel which just allows
i have an asp.net-mvc webpage and i want to show a dropdown list that
I have an asp.net webpage that contain a gridview with edit, select and delete
I have an ASP.NET webpage that is rendering many (~3000) <input type=text> textboxes on
i have a asp.net mvc webpage that queries a SQL server database for contact
Hello StackOverflow, I have an ASP.NET/C# webpage that calls functions from a managed .dll
I have a webpage that contains ASP.NET panels and JavaScript that gets all of

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.