Using RadDiagnostics in ScheduledTaskAgent

4 posts, 0 answers
  1. coldacid
    coldacid avatar
    9 posts
    Member since:
    Apr 2012

    Posted 21 Sep 2012 Link to this post

    Has anyone tried this? Is it possible?

    I know that you can't display UI from a STA, but I can at least use the ExceptionOccured event to capture the data to send the next time a user runs the application. However, I don't know if it's possible to initialize ScheduledTaskAgent and therefore RadDiagnostics from within my agent.
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 24 Sep 2012 Link to this post

    Hi Chris,

    I'm not sure if I understand correctly what you want to achieve. If I understand correctly you want to initialize RadDiagnostics in a ScheduledTaskAgent. However, RadDiagnostics is an application tool and initializing it in an agent while no application is running is not the usual approach for using this tool. Please elaborate a bit more about what exactly you want to achieve, so we can assist you further.

    I'm looking forward to your reply.

    Kind regards,
    Todor
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  3. DevCraft banner
  4. coldacid
    coldacid avatar
    9 posts
    Member since:
    Apr 2012

    Posted 24 Sep 2012 Link to this post

    That's exactly it. I'd like to be able to capture any exceptions thrown in the agent so they can be reported the next time the user runs the application normally.
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 25 Sep 2012 Link to this post

    Hello Chris,

    RadDiagnostics is not intended for such use and initializing it in a ScheduledTaskAgent is not currently possible. You can create your own error handling logic by creating an event handler for the UnhandledException event, for example. There you can choose what data you want to keep and what to do with it.

    If you have other questions, don't hesitate to write us back.

    Greetings,
    Todor
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Back to Top