Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have created OrderSystem WorkFlow.

I am hosting workflow in windows application.

I am trying to start workflow runtime I am getting 'unable to open database' error.

This is my code...

C#
string connectionString = "server=10.0.0.24;initial catalog=ROCWorkFlow;Integrated Security=SSPI;";

using (WorkflowRuntime workflowRuntime = new WorkflowRuntime())
{
   ExternalDataExchangeService dataService = new ExternalDataExchangeService();
   workflowRuntime.AddService(dataService);
   workflowRuntime.AddService(new SqlWorkflowPersistenceService(connectionString));
   workflowRuntime.StartRuntime();
}


I am new to WWF... How can I do this
Posted
Updated 19-Apr-11 21:30pm
v2
Comments
Dalek Dave 20-Apr-11 3:30am    
Edited for Grammar and Readability.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900