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

Outlook : "operation failed, object could not be found. " when trying to close a PST.

How to transfer app and data from old iPhone to new iPhone for model IOS17 and IOS18 above.

Troubleshooting Outlook Express (IMAP, POP3, HTTP, NEWS) with the log file