473,663 Members | 2,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Viewstate Corrupt error message after "Worker Process" recycling

Hi There,

I have a small ASP.NET application under development. I am using VS.NET 2002
(2003 upgrade is on the way) with .NET Framework 1.1. It is hosted on a web
hosting service in the US. I am experiencing the "Viewstate corrupted" error
message on a particular page, when that page is left for a period of time
and I return to it again, and submit it again. The page in question has a
drop-down list of various RSS news feeds I am interested in, so I'll often
look at a set of news articles, read one and return to my page and choose
another RSS feed.

I have been informed by my web hosting organisation that the problem is
caused by "worker process recycling". That is, to minimise resources after a
period of inactivity, the worker process servicing requests for my web site
is
re-used.

Does this sound plausible? Many of the other explanations regarding
synchronised machine keys in machine.config files sound much more likely to
me.

Also, even if this were the case, why would the servicing of a subsequent
request by a different worker process consider the client-side persisted
viewstate to be corrupt? That's the bit I just don't understand.

Any help or suggestions would be greatly appreciated.

Regards,
Trevor Andrew
Nov 17 '05 #1
3 2827
Hi Justin,

Thanks for that ... I understand that viewstate is encoded, and the bits
that are persisted on the server side are the machine keys to perform this
encoding. But isn't that all that is persisted server side? Surely none of
the web form related viewstate data is persisted server side?

Regards,
Trevor Andrew
"S. Justin Gengo" <sj*****@aboutf ortunate.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I don't believe the entire view state is persisted. But part of the view
state is persisted server side. Let me see if I can explain this clearly...
For security reasons the view state is encoded. Part of the encoding process is kept server side and is used to compare a submitted view state with the
part kept on the server. This makes it very difficult for someone to
impersonate a page post back sending false data in the viewstate.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Trevor Andrew" <nn**@tassoc.co m.au> wrote in message
news:eT******** ********@tk2msf tngp13.phx.gbl. ..
Hi There,

By way of further clarification, I have been told by my web hosting company
that:

a. Viewstate IS persisted on the server, and hence this is where the

problem
arises.
b. This is only an issue with Windows 2003, which they are now running.
c. There is no way to stop ASP.NET persisting a copy of viewstate on the
server.

Not wishing to sound sceptical, but points a) and c) above really puzzle

me.
I thought that Viewstate (as opposed to session state) was most definitely
only a client side form of persistence. Can someone confirm one way or the other?

Regards,
Trevor Andrew

"Trevor Andrew" <nn**@tassoc.co m.au> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi There,

I have a small ASP.NET application under development. I am using VS.NET
2002
(2003 upgrade is on the way) with .NET Framework 1.1. It is hosted on
a web
hosting service in the US. I am experiencing the "Viewstate corrupted"

error
message on a particular page, when that page is left for a period of time and I return to it again, and submit it again. The page in question
has a drop-down list of various RSS news feeds I am interested in, so I'll often look at a set of news articles, read one and return to my page and choose another RSS feed.

I have been informed by my web hosting organisation that the problem
is caused by "worker process recycling". That is, to minimise resources

after
a
period of inactivity, the worker process servicing requests for my web

site
is
re-used.

Does this sound plausible? Many of the other explanations regarding
synchronised machine keys in machine.config files sound much more likely to
me.

Also, even if this were the case, why would the servicing of a

subsequent request by a different worker process consider the client-side

persisted viewstate to be corrupt? That's the bit I just don't understand.

Any help or suggestions would be greatly appreciated.

Regards,
Trevor Andrew



Nov 17 '05 #2
Trevor,

Yes, I believe that is correct.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Trevor Andrew" <nn**@tassoc.co m.au> wrote in message
news:e%******** **********@TK2M SFTNGP09.phx.gb l...
Hi Justin,

Thanks for that ... I understand that viewstate is encoded, and the bits
that are persisted on the server side are the machine keys to perform this
encoding. But isn't that all that is persisted server side? Surely none of
the web form related viewstate data is persisted server side?

Regards,
Trevor Andrew
"S. Justin Gengo" <sj*****@aboutf ortunate.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I don't believe the entire view state is persisted. But part of the view
state is persisted server side. Let me see if I can explain this clearly...

For security reasons the view state is encoded. Part of the encoding

process
is kept server side and is used to compare a submitted view state with the
part kept on the server. This makes it very difficult for someone to
impersonate a page post back sending false data in the viewstate.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Trevor Andrew" <nn**@tassoc.co m.au> wrote in message
news:eT******** ********@tk2msf tngp13.phx.gbl. ..
Hi There,

By way of further clarification, I have been told by my web hosting

company
that:

a. Viewstate IS persisted on the server, and hence this is where the

problem
arises.
b. This is only an issue with Windows 2003, which they are now running. c. There is no way to stop ASP.NET persisting a copy of viewstate on the server.

Not wishing to sound sceptical, but points a) and c) above really puzzle
me.
I thought that Viewstate (as opposed to session state) was most

definitely only a client side form of persistence. Can someone confirm one way or the other?

Regards,
Trevor Andrew

"Trevor Andrew" <nn**@tassoc.co m.au> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> Hi There,
>
> I have a small ASP.NET application under development. I am using VS.NET 2002
> (2003 upgrade is on the way) with .NET Framework 1.1. It is hosted
on a web
> hosting service in the US. I am experiencing the "Viewstate
corrupted" error
> message on a particular page, when that page is left for a period of

time
> and I return to it again, and submit it again. The page in question

has
a
> drop-down list of various RSS news feeds I am interested in, so I'll

often
> look at a set of news articles, read one and return to my page and

choose
> another RSS feed.
>
> I have been informed by my web hosting organisation that the problem

is > caused by "worker process recycling". That is, to minimise resources

after
a
> period of inactivity, the worker process servicing requests for my web site
> is
> re-used.
>
> Does this sound plausible? Many of the other explanations regarding
> synchronised machine keys in machine.config files sound much more likely to
> me.
>
> Also, even if this were the case, why would the servicing of a

subsequent
> request by a different worker process consider the client-side persisted > viewstate to be corrupt? That's the bit I just don't understand.
>
> Any help or suggestions would be greatly appreciated.
>
> Regards,
> Trevor Andrew
>
>



Nov 17 '05 #3
Trevor,

Yes, I believe that is correct.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Trevor Andrew" <nn**@tassoc.co m.au> wrote in message
news:e%******** **********@TK2M SFTNGP09.phx.gb l...
Hi Justin,

Thanks for that ... I understand that viewstate is encoded, and the bits
that are persisted on the server side are the machine keys to perform this
encoding. But isn't that all that is persisted server side? Surely none of
the web form related viewstate data is persisted server side?

Regards,
Trevor Andrew
"S. Justin Gengo" <sj*****@aboutf ortunate.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I don't believe the entire view state is persisted. But part of the view
state is persisted server side. Let me see if I can explain this clearly...

For security reasons the view state is encoded. Part of the encoding

process
is kept server side and is used to compare a submitted view state with the
part kept on the server. This makes it very difficult for someone to
impersonate a page post back sending false data in the viewstate.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Trevor Andrew" <nn**@tassoc.co m.au> wrote in message
news:eT******** ********@tk2msf tngp13.phx.gbl. ..
Hi There,

By way of further clarification, I have been told by my web hosting

company
that:

a. Viewstate IS persisted on the server, and hence this is where the

problem
arises.
b. This is only an issue with Windows 2003, which they are now running. c. There is no way to stop ASP.NET persisting a copy of viewstate on the server.

Not wishing to sound sceptical, but points a) and c) above really puzzle
me.
I thought that Viewstate (as opposed to session state) was most

definitely only a client side form of persistence. Can someone confirm one way or the other?

Regards,
Trevor Andrew

"Trevor Andrew" <nn**@tassoc.co m.au> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
> Hi There,
>
> I have a small ASP.NET application under development. I am using VS.NET 2002
> (2003 upgrade is on the way) with .NET Framework 1.1. It is hosted
on a web
> hosting service in the US. I am experiencing the "Viewstate
corrupted" error
> message on a particular page, when that page is left for a period of

time
> and I return to it again, and submit it again. The page in question

has
a
> drop-down list of various RSS news feeds I am interested in, so I'll

often
> look at a set of news articles, read one and return to my page and

choose
> another RSS feed.
>
> I have been informed by my web hosting organisation that the problem

is > caused by "worker process recycling". That is, to minimise resources

after
a
> period of inactivity, the worker process servicing requests for my web site
> is
> re-used.
>
> Does this sound plausible? Many of the other explanations regarding
> synchronised machine keys in machine.config files sound much more likely to
> me.
>
> Also, even if this were the case, why would the servicing of a

subsequent
> request by a different worker process consider the client-side persisted > viewstate to be corrupt? That's the bit I just don't understand.
>
> Any help or suggestions would be greatly appreciated.
>
> Regards,
> Trevor Andrew
>
>



Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
8051
by: Henne | last post by:
Hello, in VB6 we werr able to make ActiveX-DLL's (In Process Components) and ActiveX-Exe (Out Of Process Components). Out Application is build of one main application that starts other modules. These modules are ActiveX-Exe's. The main application controls the modules via ActiveX. We decided to use ActiveX-Exe because we want to run the modules in
0
1501
by: Sreedharan | last post by:
Hello everyone, I am a VC++ programmer. When i develop a multi-threaded application in C++, I prefer to use worker thread, so that the main thread and worker thread can communicate using messages.(i will prefer to use PostMessage than SendMessage API in order to avoid any dead locks ) I prefer to post messages to a thread , instead using call back functions(passing pointer to another thread's function.)
4
13239
by: Earth Worm Jim | last post by:
I am using VS.Net 2003 on Windows 2003 Server (standard edition) and I am getting "The process cannot access the file because it is being used by another process" on DLL's in a VS.Net solution. I have made sure all the dependancies and the build order is correct but the actually instance of VS.Net (devenv.exe) is LOCKING THE DAM DLL'S IT IS TRYING TO BUILD. ????? I have used Process Explorer from sysinternals.com to confirm this.
3
2990
by: kris.dorey | last post by:
Hi, Ive got the following code which seems ok but when the user runs the function for a second time I get an error message stating that the mdb is in use by another process. There is still an ldb for the life of the application even after calling oldebconnection.close and gc.collect. Any ideas?
0
2331
by: Trevor Andrew | last post by:
Hi There, I have posted something previously regarding this issue, but I think I have some more concise questions to ask, and would like to get further feedback on this issue. Firstly the background. I have a small ASP.NET application under development. I'm using VS 2002 with Framework 1.1. One of the pages is a "resources" page that contains a list-box of various RSS feeds I am interested in surveying. As you select the different RSS...
6
2123
by: mark | last post by:
Just wondering if anyone has aspnet process recycling set up in any production environments. Our worker process memory gets out of control after being up for about a day or so and we were thinking about setting up some thresholds on memory usage. Any experiences using this would be greatly appreciated. thanks
3
1444
by: Bob | last post by:
I've been repeatedly annoyed by situations where a process has failed or otherwise something has gone wrong (not from any of my own apps) where I cannot move, rename, or delete a file because Windows thinks it's "being used by another process". There are no processes evident using the file(s) or folder(s), so in order to clean them up I need to log out of Windows (XP) and log back in. Out of curiosity, would it be possible to use DotNet...
2
5295
by: Goran Djuranovic | last post by:
Hi all, I was getting this error when trying to move files on a FileSystemWatcher notification (with in a Windows Service). To fix this, I implemented a FileWaiter class to wait for the file to be ReadWrite accessible, and that worked fine on two PCs (Windows XP Pro SP2 & Windows XP Pro). But when I tried this on my third PC that had Windows XP Pro SP1 installed, it would not work. The file that was copied to folder was never accessible,...
7
9402
by: dieter | last post by:
Hi, Overview ======= I'm doing some simple file manipulation work and the process gets "Killed" everytime I run it. No traceback, no segfault... just the word "Killed" in the bash shell and the process ends. The first few batch runs would only succeed with one or two files being processed (out of 60) before the process was "Killed". Now it makes no
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8858
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.