473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

mysterious asp.net errors

rh
hi all,
i've got a multi-page form that requests a bunch of stuff
and saves the info in viewstate as it goes from page to page.
finally the data is saved to sqlserver and an email is sent
to user.
here's the problem:
the page fails occasinally. the reason i know is that i have
a customerror in web.config. ever time there's a failure the
user is sent to that custom page and that page sends me an email
including the the full url. the aspxerrorpath in most cases
point to this page.

usually i get a bunch of failures within a very short period and
then things are back to normal.
i have try/catch blocks all over the page but i'm not trapping
anything in there.

somehow this page fails and the user is ushered to the custom error
page but the try/catch blocks never get a chance to report anything
back to me. and i've tested them by throwing a deliberate
exception and catching it.
is it possible that asp.net is auto-recycling thereby
messing the viewstate and other things between form posts?

i'm at my wit's end. anyone could suggest what other places to look
at for troubleshooting? using dotnet 1.1 on win2003server.

thanks,
rh
Nov 18 '05 #1
3 906
check your win2k3 IIS settings on that AppPool.
If you have it set to recycle at a certain memory usage point it could be
hitting it's limit. Try upping it

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"rh" <rh********@hotmail.com> wrote in message
news:56**************************@posting.google.c om...
hi all,
i've got a multi-page form that requests a bunch of stuff
and saves the info in viewstate as it goes from page to page.
finally the data is saved to sqlserver and an email is sent
to user.
here's the problem:
the page fails occasinally. the reason i know is that i have
a customerror in web.config. ever time there's a failure the
user is sent to that custom page and that page sends me an email
including the the full url. the aspxerrorpath in most cases
point to this page.

usually i get a bunch of failures within a very short period and
then things are back to normal.
i have try/catch blocks all over the page but i'm not trapping
anything in there.

somehow this page fails and the user is ushered to the custom error
page but the try/catch blocks never get a chance to report anything
back to me. and i've tested them by throwing a deliberate
exception and catching it.
is it possible that asp.net is auto-recycling thereby
messing the viewstate and other things between form posts?

i'm at my wit's end. anyone could suggest what other places to look
at for troubleshooting? using dotnet 1.1 on win2003server.

thanks,
rh

Nov 18 '05 #2
rh
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

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message news:<OX**************@tk2msftngp13.phx.gbl>...
check your win2k3 IIS settings on that AppPool.
If you have it set to recycle at a certain memory usage point it could be
hitting it's limit. Try upping it

--

Nov 18 '05 #3
rh
... 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
rh********@hotmail.com (rh) wrote in message news:<56**************************@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

Nov 18 '05 #4

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

Similar topics

6
by: Coral Snake | last post by:
I am having problems with programming even simple "Hello World" programs from books and tutorials that use Python GUI libraries. Such Programs cause python to throw "Attribute Errors" even when the...
1
by: M Wells | last post by:
Hi All, Further to my previous long-winded question about a situation in which we appear to be mysteriously losing data from our mssql2k server. We discovered an update statement, in the...
28
by: Glenn Alcott | last post by:
On a page I am working on which has three graphic buttons, there is a small line between two of the buttons which links to the same page as one of the buttons. I have no idea how this line got in...
12
by: Bob Stearns | last post by:
I am trying to create a duplicate prevention trigger: CREATE TRIGGER is3.ard_u_unique BEFORE UPDATE OF act_recov_date ON is3.flushes REFERENCING NEW AS N FOR EACH ROW MODE DB2SQL WHEN...
2
by: ck | last post by:
I apologize for cross posting, this is just driving me crazy. I have been beating myself up all day trying to find one good example of adArray as part of a parameter. I went this route. Sub...
1
by: Jesse McGrew | last post by:
Hi, I'm trying to create an AppDomain and use it to load an assembly with reduced permissions (e.g. the "Internet" named permission set). Unfortunately, the permissions seem to be reduced *too*...
0
by: ryan groth | last post by:
Every three or four compiles I get a TypeLoadException everytime I run a web application on the same one or two dlls. The exception information is vauge, no file errors, no permission errors, no...
5
by: Sergey | last post by:
Hi everyone, It looks like a mystery, but I hope there should be some explanation to the issue I experience. Once in a blue moon a random stored procedure stops working the way it was designed....
2
by: scarleton | last post by:
A coworker and I have spent the last day and a half trying to track down this bug in our code. We found the solution and thought we might post it to help others out... The setup: Class...
33
by: Martin Jørgensen | last post by:
Hi, In continuation of the thread I made "perhaps a stack problem? Long calculations - strange error?", I think I now got a "stable" error, meaning that the error always seem to come here now...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.