none
System.Workflow.Runtime.QueueException异常问题求助 RRS feed

  • 问题

  • 我定义的一个工作流在启动以及前两个状态上没出问题,但是在转换到第三个状态的时候出现了异常

    Queue 'Message Properties
    Interface Type:WorkFlow.IGoodsApply
    Method Name:OnLeaderAllow
    CorrelationValues:
    ' is not enabled.

    说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

    异常详细信息: System.Workflow.Runtime.QueueException: Queue 'Message Properties
    Interface Type:WorkFlow.IGoodsApply
    Method Name:OnLeaderAllow
    CorrelationValues:
    ' is not enabled.

    源错误:

    行 100:                GoodsApplyArgs args = new GoodsApplyArgs(guid, applicate, user);
    行 101:                args.WaitForIdle = true;
    行 102:                OnLeaderAllow(null, args);
    行 103:            }
    行 104:        }

    源文件: D:\VSSDocument\goodsApplyFlow\WorkFlow\GoodsApply.cs    行: 102

    堆栈跟踪:

    [QueueException: Queue 'Message Properties
    Interface Type:WorkFlow.IGoodsApply
    Method Name:OnLeaderAllow
    CorrelationValues:
    ' is not enabled.]
       System.Workflow.Runtime.WorkflowQueuingService.EnqueueEvent(IComparable queueName, Object item) +379
       System.Workflow.Runtime.WorkflowExecutor.EnqueueItemOnIdle(IComparable queueName, Object item, IPendingWork pendingWork, Object workItem) +259
       System.Workflow.Runtime.WorkflowInstance.EnqueueItemOnIdle(IComparable queueName, Object item, IPendingWork pendingWork, Object workItem) +182
       System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs) +488
    
    [EventDeliveryFailedException: Event "OnLeaderAllow" on interface type "WorkFlow.IGoodsApply" for instance id "f22d1eea-0c49-4377-b32c-44cf9a0c00df" cannot be delivered.]
       System.Workflow.Activities.WorkflowMessageEventHandler.EventHandler(Object sender, ExternalDataEventArgs eventArgs) +745
       WorkFlow.GoodsApply.RaiseLeaderAllow(Guid guid, ApplicationInfo applicate, UserInfo user) in D:\VSSDocument\goodsApplyFlow\WorkFlow\GoodsApply.cs:102
       Web.Leader.submit_Click(Object sender, EventArgs e) in D:\VSSDocument\goodsApplyFlow\Web\Web\Leader.aspx.cs:88
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    
    请问我要怎么才能解决这个问题
    2009年8月27日 8:40

答案