[英]Workflow error in VS2010
im trying to run an example of microsoft workflow software. 我试图运行Microsoft工作流软件的示例。 I get the following error in a line: 我在一行中收到以下错误:
wsh.Description.Behaviors.Add(new SqlWorkflowInstanceStoreBehavior(ApprovalProcessDBConnectionString));
WorkflowIdleBehavior wib = new WorkflowIdleBehavior();
wib.TimeToUnload = new TimeSpan(0, 0, 2);
wsh.Description.Behaviors.Add(wib);
wsh.Open(); <-- error: The InstanceStore could not be initialized.
Can anyone help me? 谁能帮我?
Sounds like you need to run a couple of queries to set up an InstanceStore in your database. 听起来您需要运行几个查询才能在数据库中设置InstanceStore。
Look for: 寻找:
SqlWorkflowInstanceStoreSchema.sql
SqlWorkflowInstanceStoreLogic.sql
in the folder: 在文件夹中:
%WINDIR%\Microsoft.NET\Framework\v4.xxx\SQL\EN
Just run those two queries on whatever database you're connecting to via your ApprovalProcessDBConnectionString. 只需在通过ApprovalProcessDBConnectionString连接到的任何数据库上运行这两个查询即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.