Re: mysterious asp.net errors

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: rh (rhashemian_at_hotmail.com)
Date: 05/03/04


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
>



Relevant Pages

  • Re: Viewstate Problem
    ... Do u use 3rd party tools in your app? ... Any errors in event log? ... Could you post a 20 first symbols of viewstate ... R> problem persists and happen only at a particular instance and only on ...
    (microsoft.public.dotnet.framework)
  • Re: c# page level global object postback
    ... unless your app is on the local lan, you should avoid using ViewState and ... you can store the session key in viewstate. ... |> How can I declare an object to have page level scope through postback. ...
    (microsoft.public.dotnet.framework.aspnet)
  • session advice
    ... i'm trying to make my app as stateless as possible. ... dataset and store in viewstate and whenever the user decides to select a from ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Storing custom collection in ViewState
    ... > NameObjectCollectionBase already implements ISerializable, ... > should be easy to store in the ViewState, ... > corrupt, but I have no idea why. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Storing custom collection in ViewState
    ... NameObjectCollectionBase already implements ISerializable, so it ... should be easy to store in the ViewState, ... corrupt, but I have no idea why. ...
    (microsoft.public.dotnet.framework.aspnet)