asp.net 中的工作流程状态没有改变

发布于 2024-08-28 23:57:46 字数 146 浏览 3 评论 0原文

我试图在按钮上将工作流的状态从一种状态更改为另一种状态,单击它在 Windows 中工作正常,但在 Web 应用程序中则不然,并且它的实例 ID 不持久,我也使用了 SqlWorkflowPersistenceService。 有什么办法可以解决这个问题。

谢谢

i m trying to change the state for workflow from one state to another on button click its working fine with windows but not with web application and its instance id does not persist i have used SqlWorkflowPersistenceService also.
what can b the solution for this.

thanks

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

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

发布评论

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

评论(1

失退 2024-09-04 23:57:46

嗯...更多细节会很有用...不幸的是,我的声誉还不允许我发表评论,所以我将发布建议作为答案:

如果您的持久性服务无法在 Web 应用程序上运行,那么我强烈建议这是一个数据库连接问题。

您用于持久性服务的连接字符串是什么?
Web 应用程序的安全设置是什么?
应用程序池以哪个用户身份运行?

检查 SQL Server 上的日志 - 是否存在有关登录失败等的错误?

由于您在 IIS 下托管 WF 运行时,因此绝对值得确保这些事情。

Hmm...a little more detail would be useful...unfortunately my reputation does not allow me to comment yet, so I will post advice as an answer:

If your persistence service is not working on the web application then I would strongly suggest that this is a database connectivity issue.

What is the connection string that you're using for the persistence service?
What are the security settings on the web application?
Which user does the application pool run as?

Check the logs on the SQL Server - are there any errors there regarding login failures etc?

As you're hosting the WF Runtime under IIS then it's definitely worth making sure of these things.

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