473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Viewstate - load balance web site - Losing state

I have a created a simple aspx page to try and debug a situation in which
our viewstate gets "lost" between requests. Our setup is 2 servers behind a
BigIP. Everytime the request move from one server to the other the
viewstate is lost, but when the request stays on the same server everything
works fine. The wierd thing is that viewstate is on the page but its wrong.
I say its wrong because for one the IsPostBack property is reset. I have
done all the modifications to the <machineKey> setting so each server is
using the exact same keys for the viewstate MAC. I cant think of anything
else to do!!!

The page I have been able to recreate it has 2 labels and a link button.
Label1 has the machine name and Label2 holds the IsPostBack value.

if (IsPostBack) {
this.lblIsPostBack.Text = "IsPostBack = true";
}
else {
this.lblIsPostBack.Text = "IsPostBack = false";
}
System.Threading.Thread.Sleep(new TimeSpan(0,0,2)); //this is just used to
help force request to other server
this.lblServerName.Text = "MachineName = " + Environment.MachineName;


Nov 18 '05 #1
1 1822
Resolved:
One server had 1.1 Service Pack 1 installed and the other did not. Part of
a non-communicated update by the network team overnight. That is why it
just quit. The interesting part is that both frameworks just ignore the
previous requests viewstate.

"Kevin C" <kc@noneya.com> wrote in message
news:u8*************@TK2MSFTNGP11.phx.gbl...
I have a created a simple aspx page to try and debug a situation in which
our viewstate gets "lost" between requests. Our setup is 2 servers behind a BigIP. Everytime the request move from one server to the other the
viewstate is lost, but when the request stays on the same server everything works fine. The wierd thing is that viewstate is on the page but its wrong. I say its wrong because for one the IsPostBack property is reset. I have
done all the modifications to the <machineKey> setting so each server is
using the exact same keys for the viewstate MAC. I cant think of anything
else to do!!!

The page I have been able to recreate it has 2 labels and a link button.
Label1 has the machine name and Label2 holds the IsPostBack value.

if (IsPostBack) {
this.lblIsPostBack.Text = "IsPostBack = true";
}
else {
this.lblIsPostBack.Text = "IsPostBack = false";
}
System.Threading.Thread.Sleep(new TimeSpan(0,0,2)); //this is just used to help force request to other server
this.lblServerName.Text = "MachineName = " + Environment.MachineName;

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Robin Bonin | last post by:
In my user contol I am creating a set of dropdownlists. Each list is created based on input from the other lists. The problem I am having is setting the selected index on the lists. If someone...
3
by: Lloyd Sheen | last post by:
I have a page that works fine. I am trying to optimize the page by overriding some of the Information that is being saved in the hidden VIEWSTATE. If I make the properties of the dropdown False...
2
by: Thiago Temple | last post by:
I have a site that is is a web farm with 2 servers using road robin load balance... Sometimes when I submit a form the following error shows up. Does anyone know what to do?? I'm using the...
6
by: clsmith66 | last post by:
Is it possible to store the same information about a control that would be saved in the ViewState in a Session state? I have a page with three treeview controls and if I enable the view state for...
9
by: Mark Broadbent | last post by:
Been a while since I've touched asp.net but one thing that always seems to fustrate me is the loss of state on variable declarations. Is there anyway (i.e. assigning an attribute etc) to instruct...
10
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web...
1
by: Irene | last post by:
Hello all! I'm creating a web site in ASP.NET (VB.NET). One of the requirements was to allow users to create orders going through several steps. A must have is to have an option to save the work...
9
by: multiformity | last post by:
The following page will not load the view state from the statebag without throwing an exception. After we get this working, I will be working on viewstate for some custom controls, but one thing at...
0
by: tynorton | last post by:
Hey, I've been working on this issue for a while now, with no leads or success. The scenario is a homemade modal dialog using UpdatePanels. There a couple ImageButtons inside of usercontrols...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.