Tuesday, March 13, 2012

trouble with viewstate

Hello,
I had a really weird problem that occured on one of our site. (occur 2 times
in 3 years)

The client 1 have fill the form1 and submit it, for some reason the page was
postback to the client 1 but the informations that was on the form after the
postback was not the informations of the client 1 but the informations of
another client (on another computer) that had filled this form 5 minutes
before.

we never save this information in any variables, enableviewstate have been
set to true to save the data on postback

here are some other informations:
Asp.net version 1.1
code vb.net
Framework 1.1, no servcie pack install
server = windows 2000 sp4
the page is ssl (https)
EnableViewStateMac is set to true on the web.configi'd suggest looking elsewhere for the cause. Probably the server is pulling
the wrong data based on id. It's unlikely for that type of thing to happen
due to viewstate confusion based on the way viewstate works.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @. www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-----------------

"sdrouins" <sdrouins@.discussions.microsoft.com> wrote in message
news:1BCC0DE6-680E-4558-A60A-8C80332BB976@.microsoft.com...
> Hello,
> I had a really weird problem that occured on one of our site. (occur 2
times
> in 3 years)
> The client 1 have fill the form1 and submit it, for some reason the page
was
> postback to the client 1 but the informations that was on the form after
the
> postback was not the informations of the client 1 but the informations of
> another client (on another computer) that had filled this form 5 minutes
> before.
> we never save this information in any variables, enableviewstate have been
> set to true to save the data on postback
> here are some other informations:
> Asp.net version 1.1
> code vb.net
> Framework 1.1, no servcie pack install
> server = windows 2000 sp4
> the page is ssl (https)
> EnableViewStateMac is set to true on the web.config
>
You're right Alvin..
The prbleme was in the outputcaching... not a probleme with viewstate

Thanks

"Alvin Bruney - ASP.NET MVP" a écrit :

> i'd suggest looking elsewhere for the cause. Probably the server is pulling
> the wrong data based on id. It's unlikely for that type of thing to happen
> due to viewstate confusion based on the way viewstate works.
> --
> Regards,
> Alvin Bruney [MVP ASP.NET]
> [Shameless Author plug]
> The Microsoft Office Web Components Black Book with .NET
> Now Available @. www.lulu.com/owc
> Forth-coming VSTO.NET - Wrox/Wiley 2006
> -----------------
>
> "sdrouins" <sdrouins@.discussions.microsoft.com> wrote in message
> news:1BCC0DE6-680E-4558-A60A-8C80332BB976@.microsoft.com...
> > Hello,
> > I had a really weird problem that occured on one of our site. (occur 2
> times
> > in 3 years)
> > The client 1 have fill the form1 and submit it, for some reason the page
> was
> > postback to the client 1 but the informations that was on the form after
> the
> > postback was not the informations of the client 1 but the informations of
> > another client (on another computer) that had filled this form 5 minutes
> > before.
> > we never save this information in any variables, enableviewstate have been
> > set to true to save the data on postback
> > here are some other informations:
> > Asp.net version 1.1
> > code vb.net
> > Framework 1.1, no servcie pack install
> > server = windows 2000 sp4
> > the page is ssl (https)
> > EnableViewStateMac is set to true on the web.config
>

0 comments:

Post a Comment