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 .

