I have inherited a web application that is running on 2 IIS boxes. The
fact that it is running on 2 boxes is causing an issue when using a
Session variable.

The issue is as follows:

A session dataset is populated using the statement

Session["BoundaryData"] = dsBoundary;

At another point in processing (after specific buttons are pressed on
the web page), the dsBoundary dataset is repopulated via the following
statement

dsBoundary = (DataSet)Session["BoundaryData"];

dsBoundary is used to populate screen data.

The issue is that a customer is using this web page and, behind the
scenes, it is flicking between the IIS boxes based on clustering
rules.

Thus, on occasions, it is picking up the session dataset data from the
wrong IIS box and this has older data in it. Thus, we have the strange
situation of old data appearing on the screen every so often.

I am not great at C# and would ideaaly just like to replace the
Session dataset with a structure that requires as little coding as
possible. Any ideas?

Cheers

Mark

Reply via email to