Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Workflow foundation 在IIS中承载SqlWorkflowPersistenceService的WF_Workflow Foundation - Fatal编程技术网

Workflow foundation 在IIS中承载SqlWorkflowPersistenceService的WF

Workflow foundation 在IIS中承载SqlWorkflowPersistenceService的WF,workflow-foundation,Workflow Foundation,我一直在使用Windows工作流WF和SqlWorkflowPersistenceService。我已经成功地使用WF和SqlWorkflowPersistenceService创建了一个原型应用程序,当在我的登录和集成安全性下运行的WebDev服务中运行时,该应用程序运行良好 然后,我将代码移动到一个托管在IIS 5.1中的项目中。在此环境中加载SqlWorkflowPersistenceService时,SqlWorkflowPersistenceService尝试使用\ASPNET用户对数

我一直在使用Windows工作流WF和SqlWorkflowPersistenceService。我已经成功地使用WF和SqlWorkflowPersistenceService创建了一个原型应用程序,当在我的登录和集成安全性下运行的WebDev服务中运行时,该应用程序运行良好

然后,我将代码移动到一个托管在IIS 5.1中的项目中。在此环境中加载SqlWorkflowPersistenceService时,SqlWorkflowPersistenceService尝试使用\ASPNET用户对数据库进行身份验证。我的问题是,有没有一种方法可以使用模拟在IIS中实例化WorkflowRuntime


仅供参考,我还尝试切换连接字符串以使用SqlLogin用户ID和密码。SqlWorkflowPersistenceService无法使用此登录。是否有人知道使用SQL登录SqlWorkflowPersistenceService是否存在问题?

对于迟到的响应,非常抱歉。在IIS中运行的Web服务中托管工作流服务时,以下操作有效。只需将节添加到web配置文件:

<WorkflowRuntime>
    <Services>
        <add type="System.Workflow.Runtime.Hosting.ManualWorkflowSchedulerService,System.Workflow.Runtime,Version=3.0.00000.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35"
             useActiveTimers="true"/>
        <add type="System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService,System.Workflow.Runtime,Version=3.0.00000.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35"
             UnloadOnIdle="true"
             LoadIntervalSeconds="5"
             ConnectionString="Initial Catalog=yourdatabase;Data Source=yourserver;User ID=youruser;Password=yourpassword;"/>
    </Services>
</WorkflowRuntime>