Debugging scheduled tasks

Vote:
 

Hello,

Is there a way to retrieve the stack trace of an exception thrown by a ScheduledTask?

The "History" tab on the admin panel only shows this not very informative message:

"12/5/2011 6:57:35 PM FAILED Exception has been thrown by the target of an invocation. [An item with the same key has already been added.]"

Thanks,

Lessandro.

#55530
Dec 06, 2011 17:33
Vote:
 

Hi

Take a look at this post by Fredrik Haglund: Enable debug logging for EPiServer Scheduler.

Hope this helps

Frederik

#55537
Dec 06, 2011 20:01
Vote:
 

Hi,

I would recommend to do your on logging with log4net in your scheduled task. You can read about logging in EPiServer here http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-CMS-6/EPiServer-CMS-60/Logging/

#55538
Dec 06, 2011 20:03
Vote:
 
#55545
Edited, Dec 07, 2011 10:07
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.