开发 WF4 应用程序时出现问题 - 请求的资源已移至以下位置之一

发布于 2024-11-15 09:09:04 字数 1618 浏览 4 评论 0原文

我正在开发 WF4 应用程序。工作流托管在 ASP.NET 网站中。对于开发,我使用 IIS Express。

在编辑周期之间进行调试时,我收到此错误:

System.ServiceModel.FaultException`1 was unhandled by user code
  Message=The requested resource has moved to the one of the following locations:
    https://localhost:44305/Workflows/PerformanceAppraisal/Exempt.xamlx
  StackTrace:
       at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
       at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
       at GoodwillHR.ExemptPAService.ExemptPAClient.ExemptPAClientChannel.EndGetSelfAppraisalForEmployeeUpdate(IAsyncResult result)
       at GoodwillHR.ExemptPAService.ExemptPAClient.GoodwillHR.ExemptPAService.IExemptPA.EndGetSelfAppraisalForEmployeeUpdate(IAsyncResult result)
       at GoodwillHR.ExemptPAService.ExemptPAClient.EndGetSelfAppraisalForEmployeeUpdate(IAsyncResult result)
       at GoodwillHR.ExemptPAService.ExemptPAClient.OnEndGetSelfAppraisalForEmployeeUpdate(IAsyncResult result)
       at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
  InnerException: 

问题是什么?

更多信息:具有多个接收的 XAMLX 工作流程。内容关联设置正确,因为如果我不停止调试器,一切都会正常工作。

在停止调试器、再次开始调试,然后在持久工作流上调用工作流接收活动之一后,我收到错误。

I am developing a WF4 application. The workflows are hosted in an ASP.NET website. For development, I am using IIS express.

When debugging between edit cycles I get this error:

System.ServiceModel.FaultException`1 was unhandled by user code
  Message=The requested resource has moved to the one of the following locations:
    https://localhost:44305/Workflows/PerformanceAppraisal/Exempt.xamlx
  StackTrace:
       at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
       at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
       at GoodwillHR.ExemptPAService.ExemptPAClient.ExemptPAClientChannel.EndGetSelfAppraisalForEmployeeUpdate(IAsyncResult result)
       at GoodwillHR.ExemptPAService.ExemptPAClient.GoodwillHR.ExemptPAService.IExemptPA.EndGetSelfAppraisalForEmployeeUpdate(IAsyncResult result)
       at GoodwillHR.ExemptPAService.ExemptPAClient.EndGetSelfAppraisalForEmployeeUpdate(IAsyncResult result)
       at GoodwillHR.ExemptPAService.ExemptPAClient.OnEndGetSelfAppraisalForEmployeeUpdate(IAsyncResult result)
       at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
  InnerException: 

What is the problem?

Some more info: XAMLX workflow with multiple receives. Content correlation is set up correctly as everything works fine if I don't stop the debugger.

I am getting the error after I stop the debugger, start debugging again and then call one of the workflow receive activities on a persisted workflow.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦冥 2024-11-22 09:09:04

不知道为什么,但进行服务参考更新后这个问题就消失了。我认为我的工作流程服务没有任何变化。

Not sure why, but doing a service reference update made this problem go away. I didn't think I had any changes in my workflow service.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文