an error when raising a state machine event

Hello, I am workin on a state machine WF which interact with the host application via theExternalDataExchangeinterface when I am raising an event from the host application this error was occured:

LOG- 2006-9-15 12:15:58.7492302 :[INFO] at System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs)

at WFReclamation.RecService.RaiseRecPriseEnChargeEvent(String RecId, Guid instanceId) in E:\Projet R?clamation\Projet\GestionReclamation\LocalServices\RecService.cs:line 13

at FacadeWorkflow.PriseEnChargeEvent(String recId) in e:\Projet R?clamation\Projet\Rec_Web\App_Code\FacadeWorkflow.cs:line 148

an these are my classes of communication with the host application:

namespace WFReclamation

{

[ExternalDataExchange]

publicinterfaceIRecService

{

eventEventHandler<RecEventArgs> RecPriseEnCharge;

}

}

__

namespace WFReclamation

{

publicclassRecService :IRecService

{

publicvoid RaiseRecPriseEnChargeEvent(string RecId,Guid instanceId)

{

if (RecPriseEnCharge !=null)

{

RecEventArgs e =newRecEventArgs(instanceId, RecId);

RecPriseEnCharge(this, e); //the error was raised here

}

}

#region IRecService Members

publiceventEventHandler<RecEventArgs> RecPriseEnCharge;

}

}

namespace WFReclamation

{

[Serializable]

publicclassRecEventArgs :ExternalDataEventArgs

{

privatestring RecIdValue;

public RecEventArgs(Guid instanceId,string RecId)

:base(instanceId)

{

RecIdValue = RecId;

}

publicstring RecId

{

get {return RecIdValue; }

set { RecIdValue =value; }

}

}

}

__

So How Can I resolve this? Thanks .

[3291 byte] By [Maaloul] at [2007-12-24]
# 1
I am workin on Beta2 version... It seems like this problem doesn't have a solution !!!!
Maaloul at 2007-10-8 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2

Hi Maaloul,

try adding this statement before raising the event

e.WaitForIdle = true;

Chris

CYu at 2007-10-8 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 3

Hi Maaloul -

Are you still facing this issue?

An excellent example that can shows how the StateMachineWFs and CallExternalMethods can interact can be seen at:

http://blogs.msdn.com/tomlake/archive/tags/ASP.NET/default.aspx

Thanks,
kushal.

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

Software Development for Windows Vista

Site Classified