Re: __VIEWSTATE different between localhost and server

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



Look at the <machinekey> settings; it could be a different algorithm (this
is less likely than the next suggestion). Also, examine the data differences
between the production database and your test/dev database. You may be
displaying too much data when on the server.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
"Eric" <riccarr@xxxxxxxxx> wrote in message
news:1158262222.839561.254590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

I was testing my application on my localhost, when I View Source, I see
the __VIEWSTATE and its only small in size (about 500 bytes).

When I copy this same application over to our IIS server and then run
it, again do a View Source, the __VIEWSTATE balloons to over 200,000
bytes.

This is the exact same program, viewing on the same page of the
program, and it gives two hugely different __VIEWSTATE contents in the
generated HTML. I even navigate the program is the same manner so that
field content is the same.

I understand what the view state does and how it used to pass
information back and forth in order to maintain the content/state of
the controls.

What would/could cause this? I feel that since the program is the same
(same binaries) it must be a server related configuration.

Appreciate any comments or suggestions.

Regards,
Eric



.



Relevant Pages

  • Re: Dealing with the Back button
    ... >That page returns the form's values when you hit the back button. ... >> server comes back with an error. ... The site did not maintain your ViewState. ... >> because ASP .NET maintains your ViewState. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Dealing with the Back button
    ... up some error strings and whatnot on the page to let the user know what they ... what that page looked like when it was last sent from the server. ... > "When a form is submitted in classic ASP, ... The site did not maintain your ViewState. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: aspnet_state.exe Internals Info Needed
    ... Last night I tried runing with server side viewstate off, ... was fine, the processor was much less under pressure, and the memory usage ... All being persisted to the session. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ViewState: why?
    ... the property, the user clicks a button, and there is another request to the ... and each request to the server means a new ... The ViewState approach works, because the viewstate is posted back to the ... > public string Text ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Dropdownlist doesn;t hold viewstate in templated datagrid column
    ... Actually i take that back about the separate data source working. ... It still needs to be posted back to the server before ... the Viewstate will wake up and maintain page state. ... Richard ...
    (microsoft.public.dotnet.framework.aspnet)