Workflow in ASP.NET

Same codes except
placing static variable

static WorkflowRuntime wr = new WorkflowRuntime();

in
Application_Start of global.asax

then

(quoted from MSLearning)

If you use the WorkflowWebRequestContext object to access the workflow runtime, you cannot add services such as persistence or scheduling services because the workflow is already started. If you try to add services to the runtime when it has already started it will generate an error. Instead, to configure the runtime with services, use the <workflowRuntime> section in the Web.config file:

[Web.config]
<configuration>
<configSections>
<section name="WorkflowRuntime"
type="WorkflowRuntimeSection, System.Workflow.Runtime" />
</configSections>
</configuration>

Comments

Popular posts from this blog

Clearcase check in/uncheck out all the checked out files script

MSSQL GROUP_CONCAT

Duplicating a local copy of project from TFS and making web software client factory to work