Monday, July 13, 2009

How to debug .Net component called within Orchestration

1. Deploy the .Net component in Debug mode

2. Attach BTSNTSvc.exe to the .Net component by selecting Debug Menu - > Processes -> BtsNTSVC.exe.Make sure you are attaching right instance.


That's it and if it's a file drop, drop a file and you will the yellow highlight in the .Net Component

Hope this helps

1 comment:

  1. The following steps demonstrate how to debug a .NET component called by an Orchestration:

    Open the Visual Studio project for your component.

    Set a breakpoint in your component on the method that is called by the orchestration.

    Click the Debug menu and select Attach to Process… to display the Attach to Process dialog.

    Click the Select… button next to the Attach to: text box to display the Select Code Type dialog.

    Click to select the option to Debug these code types: and select Managed and then click the OK button.

    Click to select the BTSNTSvc.exe process from Available Processes and then click the Attach button.

    Send a message to your orchestration through a receive port.

    The .NET component should be stopped in the breakpoint.

    ReplyDelete