L
Lars-Erik Aabech
Hi!
I've got an asp.net page that works for all users except one and that one
user only gets the error with a certain parameter set to a certain value.
(Same value as the others, but for this one it fails). I manage to reproduce
the error on my development computer, but it's completely impossible to
debug or trace the error. The page had for some reason aspCompat set to
true, and that gave a short stack trace, when set to false there's none at
all. See copied content below. Anyone have any ideas how to find the cause
for this? (I can start eliminating data in the db for the relevant user, but
I'd like to get some input first)
As mentioned in the topic, the exception is thrown some time after
Page.Unload, and I haven't found any reasonable event or overload that
should be able to catch the exception. (Page.Error doesn't....) I don't get
any trace either.. I tried putting a Response.End() after base.Render() in a
Render overload and that made the page work as expected. All DB operations
both on postback and first request including rendering etc. etc. runs fine.
Without aspCompat:
---------
Exception of type System.StackOverflowException was thrown.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.StackOverflowException: Exception of type
System.StackOverflowException was thrown.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[StackOverflowException: Exception of type System.StackOverflowException was
thrown.]
---------
With aspCompat:
-------------
Exception of type System.StackOverflowException was thrown.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.StackOverflowException: Exception of type
System.StackOverflowException was thrown.
Source Error:
[No relevant source lines]
Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\webcompetence\87bc3de7\47398267\zksnyfrb.0.cs Line: 0
Stack Trace:
[StackOverflowException: Exception of type System.StackOverflowException was
thrown.]
[HttpException (0x80004005): Exception of type System.Web.HttpException was
thrown.]
System.Web.HttpAsyncResult.End()
System.Web.Util.AspCompatApplicationStep.EndAspCompatExecution(IAsyncResult
ar)
System.Web.UI.Page.AspCompatEndProcessRequest(IAsyncResult result)
ASP.samtaler_resultat_new_aspx.EndProcessRequest(IAsyncResult ar) in
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\webcompetence\87bc3de7\47398267\zksnyfrb.0.cs:0
System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult
ar)
I've got an asp.net page that works for all users except one and that one
user only gets the error with a certain parameter set to a certain value.
(Same value as the others, but for this one it fails). I manage to reproduce
the error on my development computer, but it's completely impossible to
debug or trace the error. The page had for some reason aspCompat set to
true, and that gave a short stack trace, when set to false there's none at
all. See copied content below. Anyone have any ideas how to find the cause
for this? (I can start eliminating data in the db for the relevant user, but
I'd like to get some input first)
As mentioned in the topic, the exception is thrown some time after
Page.Unload, and I haven't found any reasonable event or overload that
should be able to catch the exception. (Page.Error doesn't....) I don't get
any trace either.. I tried putting a Response.End() after base.Render() in a
Render overload and that made the page work as expected. All DB operations
both on postback and first request including rendering etc. etc. runs fine.
Without aspCompat:
---------
Exception of type System.StackOverflowException was thrown.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.StackOverflowException: Exception of type
System.StackOverflowException was thrown.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[StackOverflowException: Exception of type System.StackOverflowException was
thrown.]
---------
With aspCompat:
-------------
Exception of type System.StackOverflowException was thrown.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.StackOverflowException: Exception of type
System.StackOverflowException was thrown.
Source Error:
[No relevant source lines]
Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\webcompetence\87bc3de7\47398267\zksnyfrb.0.cs Line: 0
Stack Trace:
[StackOverflowException: Exception of type System.StackOverflowException was
thrown.]
[HttpException (0x80004005): Exception of type System.Web.HttpException was
thrown.]
System.Web.HttpAsyncResult.End()
System.Web.Util.AspCompatApplicationStep.EndAspCompatExecution(IAsyncResult
ar)
System.Web.UI.Page.AspCompatEndProcessRequest(IAsyncResult result)
ASP.samtaler_resultat_new_aspx.EndProcessRequest(IAsyncResult ar) in
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\webcompetence\87bc3de7\47398267\zksnyfrb.0.cs:0
System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult
ar)