带有托管在 IIS 中的 SqlWorkflowPersistenceService 的 WF
我一直在使用 Windows Workflow (WF) 和 SqlWorkflowPersistenceService。我已经使用 WF 和 SqlWorkflowPersistenceService 成功创建了一个原型应用程序,该应用程序在我的登录和集成安全性下运行的 WebDev 服务中运行时工作正常。
然后,我将代码移至 IIS 5.1 中托管的项目中。在此环境中加载 SqlWorkflowPersistenceService 时,SqlWorkflowPersistenceService 尝试使用 \ASPNET 用户对数据库进行身份验证。我的问题是,有没有办法使用模拟在 IIS 中实例化 WorkflowRuntime?
仅供参考,另外,我尝试切换连接字符串以使用 SqlLogin 用户 ID 和密码。 SqlWorkflowPersistenceService 无法使用此登录。有谁知道使用 SqlWorkflowPersistenceService 的 SQL 登录是否存在问题?
I have been working with Windows Workflow (WF) and the SqlWorkflowPersistenceService. I have successfully created a prototype application using WF and the SqlWorkflowPersistenceService which works fine when running in WebDev service running under my login and integrated secruity.
I then moved my code to a project that is hosted in IIS 5.1. When loading the SqlWorkflowPersistenceService in this environment the SqlWorkflowPersistenceService tries to use the \ASPNET user to authenticate to the database. My question is, is there a way to instantiate the WorkflowRuntime in IIS using impersonation?
FYI, Also, I tried switching over the connection string to use a SqlLogin UserID and Password. The SqlWorkflowPersistenceService fails to login using this. Doe anyone know if there is an issue using a SQL Login for the SqlWorkflowPersistenceService?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉回复迟了。当在 IIS 中运行的 Web 服务中托管工作流服务时,以下方法有效。只需将该部分添加到您的 Web 配置文件中:
Sorry for the belated response. The following works when hosting the workflow service in a webservice running in IIS. Just add the section to your web config file: