473,378 Members | 1,420 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,378 software developers and data experts.

Strange Behavior in a Web Farm (Network Load Balancing)

We have a pretty straightforward page ('Page 1'). The codebehind
creates a DataTable and binds the data to a Repeater which renders an
HTML table on screen. The first column in the HTML table is a
Checkbox.

When one or more boxes is/are checked, and the submit button is
clicked, the page posts back to itself, the selected value(s) is/are
stored in a cookie, the user is then redirected to a second page
('Page 2').

Most of the time the second page ('Page 2') renders correctly. The
correct behavior is to query a database, create a DataTable, 'filter'
the DataTable using the value(s) stored in the cookie, and generate an
HTML table displaying the rows that are found.

Sometimes -- and so far ONLY when the site is being served by 2 or
more web servers -- the second page ('Page 2') renders and the HTML
table is missing (looks like the DataTable contains no data).

Since this only seems to happen when the site is being served by 2 or
more web servers (NLB Web Farm) we are assuming the user must have
bounced from Server A to Server B.

The only thing that stands out (code-wise) is this:

The HTML table is part of a user control (.ascx file). The user
control is accessing a Page Property (marked public). The user
control does this by (a) Checking whether the containing page is a
subclass of a specific Type, (b) casting the Page as that Type, and
(c) accessing the Property.

If the user bounced from Server A to Server B, could the Type be
different in some way?

NOTES:

- We are using a cookie
- We are not using the ASP.NET Session object
- The data is retrieved by both 'Page 1' and 'Page 2' from the
database -- not from cache
- The machine key (in the machine.config file) is the same on both
servers

Anyone have any thoughts on this?

Thanks!

Glen J Fergo
Lead Web Developer, Henry Schein, Inc.
Gl********@henryschein.com
Jun 27 '08 #1
0 1176

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

Similar topics

2
by: yagish | last post by:
Hi Techies, Am really new with the Oracle 9i Forms and am searching for a way to perform Load Balancing in Oracle 9i Forms Application. Its not a J2EE application, so cannot go the OC4J way. I...
8
by: Ondine | last post by:
Hi I have a client running an Access 2000 database on a small network with 3 pc's. Two of the laptop pcs have a data replica, which they use when not connected to the network, the 'server'...
3
by: sudha | last post by:
Hi, Is it possible to redirect user to same webserver in clustered web farm until his session ends?
1
by: S S Venkatesh | last post by:
Hi, I'm involved in a ASP.NET web project with a web farm and load balancing(windows server 2003 ) with no afinity (no sticky sessions) and i am facing problems in view state. I get an error...
1
by: Daniel Williams | last post by:
If I am handling errors in my Global.Asax Application_Error method and this resides on a web farm and I am trying to trap the last exception that was thrown, I assume that Server.GetLastError()...
6
by: Andrew Robinson | last post by:
I am running two servers with a hardware network load balancing device. I know that to share session information between the two servers I need to implement some type of SQL based session...
4
by: Feng Chun | last post by:
Hi, need help for this. In asp.net, when I do a load balancing on my website, which means there are 2 or more servers behind, one of my webpage needs to read/write a temp file in the server. But...
3
by: George Jordanov Ivanov | last post by:
Folks, I am currently researching the possibilities to build up a Web farm based on ASP.NET 2.0. However, I can't find good guides and HOWTOs regarding this. I guess that there should be some...
1
by: =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= | last post by:
Hi Experts, With Session Affinity and Web Server Farm on ISA Server 2006 accessing 2 backend IIS servers, I’m getting error “Validation of ViewState MAC failed. If this application is hosted...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.