Re: mysterious asp.net errors
From: rh (rhashemian_at_hotmail.com)
Date: 05/03/04
- Next message: Rob Van Zant: "Re: Deploy an ASP Application"
- Previous message: Liensun: "Download a file then the next error message appear The connection with the server was reset"
- Messages sorted by: [ date ] [ thread ]
Date: 3 May 2004 09:02:57 -0700
.. and for those who might be curious about if there
were a resolution to this, the answer is yes.
the viewstate was getting corrupt between page posts,
hence the error. and the fix was to set enableviewstatemac=false.
despite what the doc claims, this value is true by default,
the viewstate gets bloated and it sometimes gets corrupt between page
posts. i couldn't find why encrypting the viewstate would
cause such error. perhaps the bloated version couldn't
always be correctly decrypted due to size. but after
making the change, the page is behaving okay.
if you are going to disable enableviewstatemac, beware the
the viewstate data will make the round trips unencrypted and
can be easily deciphered by the users. don't store anything
critical in there such as db logic, system accounts, etc.
rh
rhashemian@hotmail.com (rh) wrote in message news:<56c3b705.0404241632.18559e3f@posting.google.com>...
> thanks,
> i'll look into doing this. so it is possible that this behaviour
> is caused by the app recycling in the middle of a bunch of users
> going thru the motions on this page. suddenly their viewstates
> get wiped and the app throws an exception? i still have some trouble
> understanding why. viewstate is a hidden field, unlike the session
> vars, so even if the app recycles in between page posts, the
> page should pick up from where it left off, right?
>
> i have checked the event log and i'm not seeing any recycling
> or other critical entries there, but perhaps no logs are
> generated when this happens.
>
> the app contains many pages that share a number of resources
> such as ascx controls. if i divide them up to multiple apps,
> i believe i'd have to copy those resources to each separate
> app in order to be able to use them.
>
> maybe there is bad page (maybe one with inifinite loop inside)
> in the site that causes all this. if so, would i be able to pinpoint
> the errant page by looking in some log file somewhere? also would perfmon
> be of any assistance? if so, which items should i be tracking? there are
> oh so many of them.
>
> thanks,
> rh
>
- Next message: Rob Van Zant: "Re: Deploy an ASP Application"
- Previous message: Liensun: "Download a file then the next error message appear The connection with the server was reset"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|