asp.net 中的工作流程状态没有改变
我试图在按钮上将工作流的状态从一种状态更改为另一种状态,单击它在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯...更多细节会很有用...不幸的是,我的声誉还不允许我发表评论,所以我将发布建议作为答案:
如果您的持久性服务无法在 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.