Exceptions

Exceptions

Old forum URL: forums.lhotka.net/forums/t/6008.aspx


kenb posted on Wednesday, December 17, 2008

I've reviewed the production web server's Event Log to monitor for unhandled exceptions in my application. I have one occuring sporadically which I don't really know how to track down. The event log information follows:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/16/2008 3:13:42 PM
Event time (UTC): 12/16/2008 11:13:42 PM
Event ID: 53594a1b392c426c808260c9b409ac7b
Event sequence: 2680
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/374595823/ROOT-1-128738627792666216
Trust level: Full
Application Virtual Path: /
Application Path: xxx
Machine name: xxx

Process information:
Process ID: 5928
Process name: w3wp.exe
Account name: NT AUTHORITY\SYSTEM

Exception information:
Exception type: CallMethodException
Exception message: DataPortal_Fetch method call failed

Request information:
Request URL: http://xxx/EmployeeSearch.aspx
Request path: /EmployeeSearch.aspx
User host address: 192.168.64.79
User: xxx
Is authenticated: True
Authentication Type: Forms
Thread account name: NT AUTHORITY\SYSTEM

Thread information:
Thread ID: 123
Thread account name: NT AUTHORITY\SYSTEM
Is impersonating: False
Stack trace: at Csla.MethodCaller.CallMethod(Object obj, MethodInfo info, Object[] parameters) in C:\dev\cslavb-3.0.4-080222\cslavb\Csla\DataPortal\MethodCaller.vb:line 123
at Csla.Server.SimpleDataPortal.Fetch(Type objectType, Object criteria, DataPortalContext context) in C:\dev\cslavb-3.0.4-080222\cslavb\Csla\DataPortal\Server\SimpleDataPortal.vb:line 116


Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Can anyone recommend how to track down the conditions in which this exception is being thrown? I've examined the referenced .aspx but the only Get* calls that are being made are to NameValuePairListBase.GetList() which take no parameters.

Thanks for any light you can shed on this.

rsbaker0 replied on Wednesday, December 17, 2008

The problem is I see it as there is likely an inner exception whose detail you can't see yet.

If the error is always happening on the same object, you could override DataPoral_Fetch and log the complete exception set and stack trace to a file (maybe using Log4net or something similar, or your own homegrown implementation).  After logging the exception, you would just rethrow it.

That should help you track down the specific cause of your problem.

kenb replied on Thursday, December 18, 2008

Okay, thank you very much!

Copyright (c) Marimer LLC