ServicesResourcesConferencesOur TeamWeblogsAboutContact
   

Subscriptions

Post Categories

Affiliations

Archives

Debugging WF-based workflows hosted in ASP.NET

OK, I have been banging my head several times to get this working. Now here it is for your reference.
Here are the steps to debug a WF-based workflow hosted in ASP.NET.

  • Enable debugging for your ASP.NET application by setting 'debug=true' in the web.config
  • Set the workflow library as the startup project and set appropriate breakpoints on the workflow
  • In the workflow project's properties dialog select the 'Debug' tab and choose 'Start with external URL'. Enter the URL of your default webpage here
  • Now attach to w3wp.exe (on Server 2003, Vista), aspnet_wp.exe (on XP) or webdev.webserver (when using Cassini-like dev and test web server from Visual Studio 2005) in which the workflow is ultimately running - set the debug engine to “Workflow”
    • Open 'Attach to Process...' dialog
    • Click the 'Select...' button next to the 'Attach to...' textbox
    • Select the option 'Debug these code types' and only check 'Workflow'
  • Open the default web page in a browser and trigger the workflow.

Now you should be able to debug your ASP.NET-hosted WF workflows. Hope this helps.

posted on Wednesday, March 22, 2006 2:57 PM

# Debugging WF Workflows Hosted in ASP.NET @ Thursday, March 23, 2006 11:15 PM


Ryan McIntyre

# Debugging WF Workflows Hosted in ASP.NET @ Thursday, March 23, 2006 11:15 PM


Ryan McIntyre

# re: Debugging WF-based workflows hosted in ASP.NET @ Tuesday, January 13, 2009 6:09 PM

Thank you very much. This helped me! Following your steps just worked.
Steffen S.


Powered by Community Server, by Telligent Systems