Sorry, I had posted that same question in the "Dev and Programming" forum, but I'm reposting here because it's more of a workflow related question.
We are trying to cancel workflow programmatically.
It used to work fine until we migrated our environment to a new server and now it fails.
Our code goes something like this:
foreach (SPWorkflow wf in form.Workflows)
//code omitted for brievety
But an ArgumentException is thrown.
Msdn docs say that an ArgumentNullException exception can be thrown (ArgumentNullException: The workflow to cancel belongs to an SPWeb object that has been deleted) but it is actually an ArgumentException that is thrown. Plus I know for
sure that the SPWeb does not get deleted.
I tried to reflector what piec
View Complete Post