Using CallExternalMethod activity always terminates a workflow....

I have created an interface, marked with externaldataexchagne. Then I have impplemeted methods defined in that interface.

I have then tried using CallExternalMethod activity to invoke that method, but whenever that activity needs to be executed, it terminates the workflow.

Any idea why this is happening?

Thanks,
Marko Vuksanovic.

[360 byte] By [markovuksanovic] at [2007-12-24]
# 1

to get more infos about what's going wrong, display the error message in your workflow faulthandler activity.

Serge

SergeLuca at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2
Ok, I have added the FaultHandlerActivity to my workflow (and a codeExecute activity with a line of code that shows a messagebox),.... but how can I get, and display, the information about the error?
markovuksanovic at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 3

Hi Marco,

in your code activity, display your FaultHandlerActivity.Fault property.

Serge

SergeLuca at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 4

The error i get is:

System.InvalidOperationException: Could not find service of type xxxxxxx through the currently configured services....

It seems like I need to use ExternalDataExchange service... Could someone point me to some documentation about this topic?

markovuksanovic at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 5

ExternalDataExchangeService myExchService = new ExternalDataExchangeService();
workflowRuntime.AddService(myExchService);
myExchService.AddService(new MyCommService());

Or watch this video: http://wf.netfx3.com/files/folders/screencasts/entry4997.aspx

SergeLuca at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified