Model view controller 在MVC中,工作流服务不工作而没有任何错误

Model view controller 在MVC中,工作流服务不工作而没有任何错误,model-view-controller,workflow-foundation,Model View Controller,Workflow Foundation,我正在从我的MVC web客户端调用WF as a service(作为客户端中的服务引用托管)。发布后,当我在本地机器IIS中部署和托管WebClient和WF服务时,它正在工作,工作流调用所有定义的活动。但当我在生产服务器(WindowsServer2012)上部署相同的构建时,WF服务似乎没有被调用,没有任何错误。请查找下面的代码 [HttpPost] public ActionResult NewFeed(FeedProcessViewmodel fpmodel) { //som

我正在从我的MVC web客户端调用WF as a service(作为客户端中的服务引用托管)。发布后,当我在本地机器IIS中部署和托管WebClient和WF服务时,它正在工作,工作流调用所有定义的活动。但当我在生产服务器(WindowsServer2012)上部署相同的构建时,WF服务似乎没有被调用,没有任何错误。请查找下面的代码

[HttpPost]
public ActionResult NewFeed(FeedProcessViewmodel fpmodel)
{
    //some database object creation and saving

    waiting to save the data into database and use the generated request id
    sBL.SaveFeedDetailAsync(m_objMasterSnapShot, m_objMasterFeed, m_objFeedDetail);

    //calling windows workflow service
    InputRequest objInputRequest = new InputRequest { RequestId = "requestid" };
    ServiceClient objServiceClient = new ServiceClient();
    OutputResponse outputResponse = objServiceClient.SubmitRequest(objInputRequest);

    if (!outputResponse.Success)
    {
        oDic.Add("Error", outputResponse.Message);
        jrResult.Data = oDic;
        throw new Exception(outputResponse.Message);
    }
    else
    {
        //CALLING THIS LINE AFTER OUTRESPONSE LINE EXECUTION
        // BUT ALL THE ACTIVITY WITHING WORKFLOW NOT EXECUTED
        oDic.Add("Ok", outputResponse.Message);
        jrResult.Data = oDic;
    }
}
有什么帮助吗
谢谢

回复这篇文章太晚了,因为我实际上忘记了为这篇文章添加更新

出现上述问题的原因是在InputRequest类构造函数中

InputRequest objInputRequest = new InputRequest { RequestId = "requestid" };
具有返回null的代码,并且由于InputRequest类具有try-catch块,所以实际错误被抑制,并且不会传播到调用位置