blog community
How to solve Visual studio crash on attach process for debugging a sharepoint workflow
Marcel de Vries, MVP Team System

Syndication

The past couple of days I have done some work on creating custom workflows in the new Windows SharePoint V3 environment.

I must say that it is quite a good environment from an end user perspective and the activities out of the box available are, after reading some blogs, quite appealing. The sharepoint activities have some interesting twists if it comes to correlation, but that is beond the scope of this post. (Go here and here, these posts are a must read to grasp the way correlation works with those activities)

One thing I kept running into is the fact that once you deployed a workflow into the MOSS server, I wanted to debug my workflow. The way to do this is that you choose Attach process from your project and then select the right w3p instance. The problem I kept running into is that visual studio always crashes when you do this when a workflow is running inside the w3p process.

So I had to go through some steps to effectively get my debugger attached without a crash: First deploy the workflow in MOSS, then hit some pages on the site, then attach the debugger and fire of a new workflow. Any other sequence would fail on me.

I found that this issue can be resolved by only selecting workflow as the only thing to attach to in the attach dialog. See screenshot below:

Now you are able to attach the debugger any time you want without crashing the IDE. I must say after finding this solution, life got a whole lot better. It literally saved me hours debugging.

Hope this helps you to be more productive J


Posted 29-01-2007 21:41 by marcelv

Comments

Bart Gunneman wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 30-01-2007 7:10

Great work, Marcel!

This saves a lot of time :)

Daniel wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 06-03-2007 20:52

Great, this will save me loads of time!! =]

Simon Doy wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 21-03-2007 18:27

Thanks Marcel,

I have just been looking as to why msdev kept bombing out. Heres another one for you. If you want to debug WF remotely - need to install VS on the MOSS box!

Simon

Czarek wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 20-04-2007 12:07

Marcel your a life saver!!!

ajay wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 16-05-2007 11:18

thanks a lot

Jordi wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 14-08-2007 15:27

Thanks for this great trick. It is going to save me a lot of hours of work!!!

Mirrored Blogs wrote Workflow Debugging - Attaching to W3WP.EXE Crashes VS.NET
on 17-08-2007 22:12

Ever come across the problem where you want to debug your workflow so you attach VS.NET to the w3wp process

Øyvind Habberstad wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 19-08-2007 10:51

Perfect! Thanks to you I'm debugging my first workflow! :-)

Popul wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 14-09-2007 1:07

Idem, why don't i think to this issue earlier. Thx a lot !!

Eric Halsey wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 04-10-2007 18:24

You are awesome!~  

Thanks a bunch!

Alain wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 22-10-2007 22:30

Thank you so much for this insight. You saved my day.

Ola wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 05-11-2007 18:25

BIG BIG Thanks!!

Tod Thomson wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 10-12-2007 5:01

Yes, thanks for that one :) I was getting to the point where I was almost going to go postal!!! :)

beifeng2744 wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 11-12-2007 6:45

Great, thanks!

You da man! Thanks wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 05-03-2008 20:36

This also was killing me.

Jorge Carvalho wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 02-04-2008 10:50

Thank you!!!!

saso wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 06-05-2008 10:05

nice one

Garth wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 27-05-2008 13:27

Thanks this saved me alot of time :))

Roberto Vasquez wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 28-07-2008 21:58

THANKS YOU!  I had spent a couple of days traying so many different things, and bingo!! Thanks to you I got it to work!!!

Venkatesan J wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 14-08-2008 10:20

Thanks a ton Marcel. I was trying to find a workaround for this and almost wasted two days in this. You are a life saver.

Venkatesan J wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 14-08-2008 10:20

Thanks a ton Marcel. I was trying to find a workaround for this and almost wasted two days in this. You are a life saver.

Jason wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 25-09-2008 20:11

This had been giving me the biggest headache.

Data Cogs Information Technology wrote Visual Studio Crashes When Debugging SharePoint Workflow
on 12-11-2008 7:11
Eyal wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 05-01-2009 9:45

First thanks for the solution.

If I try to attach a labuser process, the attach is access deny.

Naren Chelluri wrote re: How to solve Visual studio crash on attach process for debugging a sharepoint workflow
on 26-01-2009 12:35

Thanks a lot, saved lot of time

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Powered by Community Server (Commercial Edition), by Telligent Systems