I'm currently working on a custom workflow for Contour which posts values from the form to a WCF service.The problem is that I keep getting an exception telling me the provided GUID in the constructor is not a valid guid.
Exception:
umbracoForms:Forms: Can't initialize provider 'myWorkflow.MyWorkflow': System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
And my constructor looks like this:
public MyWorkflow()
{
Log.Add(LogTypes.Debug, 1234, "My custom workflow called");
this.Name = "My workflow";
this.Id = new Guid("ff092629-03ac-43aa-b665-e3469d8fb83a");
this.Description = "This is a test";
}
Anyone got a hint on why this is happening? To me, the GUID string looks like a GUID should ;-)
I just had a 10 minutes break from the PC and when I looked at it again, it was one of the other GUIDs in my code that had a $ in it (since I copied it from the DOM) - sigh! ;-) I guess a small break now and then helps before rushing to the forums posting (quite) obvious questions.
Everything works just as it should now. For future reference: doublecheck those GUIDs :-)
Exception in custom workflow
Hi all,
I'm currently working on a custom workflow for Contour which posts values from the form to a WCF service.The problem is that I keep getting an exception telling me the provided GUID in the constructor is not a valid guid.
Exception:
umbracoForms:Forms: Can't initialize provider 'myWorkflow.MyWorkflow': System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
And my constructor looks like this:
Anyone got a hint on why this is happening? To me, the GUID string looks like a GUID should ;-)
Thanks in advance.
All the best,
Bo
Hi Bo,
Weird! Just tested here and no issues with that same code. Any other code that's missing?
What version of Contour?
-Tom
Hi Tom,
I just had a 10 minutes break from the PC and when I looked at it again, it was one of the other GUIDs in my code that had a $ in it (since I copied it from the DOM) - sigh! ;-) I guess a small break now and then helps before rushing to the forums posting (quite) obvious questions.
Everything works just as it should now. For future reference: doublecheck those GUIDs :-)
Thanks again!
- Bo
is working on a reply...