简体   繁体   中英

Workflow error in VS2010

im trying to run an example of microsoft workflow software. 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM