Tutorial :Workflow 4.0 Argument Errors


I'm having two errors with workflow, one I think is caused by a bug in the compling with VS2010, its

Error 1 Could not resolve attachable member {clr-namespace:;}Flowchart1.requestType C:\Documents and Settings\Hilliard\my documents\visual studio 10\Projects\WorkflowConsoleApplication1\WorkflowConsoleApplication1\Flowchart1.xaml WorkflowConsoleApplication1

That error usually goes away after two builds in a row. I don't know if its related but another error gets thrown once the workflow runs in the Partial Class in the new

"Cannot set unknown Member 'requestType'. Line:3 Offset:4".

Anyone have any clue if I'm doing something wrong here? I just want to pass in two parameters into my workflow and use them throughout the workflow. Right now the workflow won't even load as them defiend in the workflow.


It's hard to tell this information from your description, I think you really need to add more details: -how are you declaring requestType? -how are you passing the arguments in to your workflow? -what is the XAML you are getting the compile error from?

You could also try asking your question on the MS forum for WF 4.0 Beta1... http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/threads


by that "{clr-namespace:;}" you have in your error message, i suspect you're refering to some class within your current assembly (say a custom activity or a type from within your compiling assembly).

if that's the case, then simply go ahead with splitting your assembly, and moving your custom activities and/or types (which are referenced by your workflow instance) into the new one.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »