WF状态机中调用事件时出现System.Workflow.Activities.EventDeliveryFailedException was unhandled

CNet 2007-11-27 03:44:47
详细错误信息:
System.Workflow.Activities.EventDeliveryFailedException was unhandled
Message="无法为实例 ID“f8e05185-3a4b-48c8-8c37-3b4ebd03b7aa”传递接口类型“WorkflowInterface.IOrder”上的事件“Confirm”。"
Source="System.Workflow.Activities"
StackTrace:
在 System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs)
在 WorkflowInterface.Order.RaisConfirmEvent(ExternalDataEventArgs args) 位置 E:\WWF\Tech\TestSolution\WorkflowInterface\Order.cs:行号 24
在 AppTest.Form1.btnConfirm_Click(Object sender, EventArgs e) 位置 E:\WWF\Tech\TestSolution\AppTest\Form1.cs:行号 42
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.Run(Form mainForm)
在 AppTest.Program.Main() 位置 E:\WWF\Tech\TestSolution\AppTest\Program.cs:行号 18
在 System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Workflow.Runtime.QueueException
Message="未启用队列“Message Properties\r\nInterface Type:WorkflowInterface.IOrder\r\nMethod Name:Confirm\r\nCorrelationValues:\r\n”。"
Source="System.Workflow.Runtime"
StackTrace:
在 System.Workflow.Runtime.WorkflowQueuingService.EnqueueEvent(IComparable queueName, Object item)
在 System.Workflow.Runtime.WorkflowExecutor.EnqueueItemOnIdle(IComparable queueName, Object item, IPendingWork pendingWork, Object workItem)
在 System.Workflow.Runtime.WorkflowInstance.EnqueueItemOnIdle(IComparable queueName, Object item, IPendingWork pendingWork, Object workItem)
在 System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs)

InnerException: System.Workflow.Runtime.QueueException
Message="未启用队列“Message Properties\r\nInterface Type:WorkflowInterface.IOrder\r\nMethod Name:Confirm\r\nCorrelationValues:\r\n”。"
Source="System.Workflow.Runtime"


...全文
440 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
TT7380 2011-12-29
  • 打赏
  • 举报
回复
我碰到同样的问题,我找到问题报错的地方是RetrieveStateFromDB()这个方法时,出现字节数组为0时,才出现这个错误,可能是GUID时未找到。
sijoia 2011-12-28
  • 打赏
  • 举报
回复
我也遇到。。。。。
gr_Gong 2011-12-15
  • 打赏
  • 举报
回复
我也遇到同样地问题
breeze5025 2008-12-01
  • 打赏
  • 举报
回复
我也遇到同样的问题,顶
dreamtruck 2008-09-09
  • 打赏
  • 举报
回复
遇到同样的问题,帮你顶

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧