Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 170013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:43:58+00:00 2026-05-11T12:43:58+00:00

I’m using Windows Workflow as part of a class library in an ASP.NET application.

  • 0

I’m using Windows Workflow as part of a class library in an ASP.NET application. I’ve read all the suggestions about setting up WWF in ASP.NET and using a ManualWorkflowSchedulerservice, however, I’m not sure if that makes sense for my app.

My workflows are all sequential, no persistance; they’re fire and forget. A client makes a request and comes back later to see the results (or waits around on the app). Up to now I’ve been using AJAX web service class to fire off the job.

function DoWebserviceJob() {    MywebService.DoJob(onComplete, onFailed); }  [WebMethod] public DoJob() {    //code from library } 

If the customer was still around he’d get a notice, if not it was OK. Now I’m using WWF instead of coding straight from the library. I know this works(since I’ve done it) but I’m wondering if there are some side-effects that I’m not aware of or other concerns. My new code looks like this:

[WebMethod] public DoJob() {      WorkflowRuntime runtime = Application['RUNTIME'] as WorkflowRuntime;      MyWorkflowManager.DoJob(runtime); } 

My Class Library:

public void DoJob(WorkflowRuntime runtime) {    WorkflowInstance instance = runtime.CreateWorkflow(typeof(MyWorkflow));    instance.Start(); } 

This is a bit simplified, but the overall process is here. This works fine right now, are there are any issues I should be concerned with? If it’s threads (which seems to be the most cited concern), Iis this not the same as webservice firing off on a different thread?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:43:59+00:00Added an answer on May 11, 2026 at 12:43 pm

    It is kind of hard to give you a good answer as there are lots of unknowns but I will give it show anyway.

    The most often heard issue with ASP.NET and WF is that both use the ThreadPool and are not aware of each other. This problem depends mostly on your ASP.NET site are WF by default uses only a few threads in the ThreadPool (4 per proc to execute workflows and another for the runtime). The problem is usually solved by using the manual WF scheduler as WF then uses the host thread, ie the one used by ASP.NET. Now this can be good or bad depending on your needs. First of all the ThreadPool size has been growing and is now up to 250 threads per proc so ThreadPool starvation is unlikely to be an issue unless it is a high load website. A downside of using the manual scheduler is that all requests, ie the instance.Start(), become synchronous. If you need something from the workflow to finish the request but if it is fire and forget your ASP.NET request is now waiting for the workflow to finish or reach some idle state. So in some cases you will be better off with the default scheduler in you ASP.NET app, it all depends on what you are doing and the server load.

    One thing to keep in mind is that IIS will recycle the AppDomain after a specific time, I believe 25 hours by default, or number of requests. When that happens the WF runtime is destroyed and, with the next request I presume, recreated in another AppDomain. If you are not using persistence all your workflow state will be lost and existing workflows will be terminated. Depending on the amount of time a workflow takes this could be a problem or may not be, hard to tell from my end.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 92k
  • Answers 92k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In a custom module using function hook_init() May 11, 2026 at 6:32 pm
  • Editorial Team
    Editorial Team added an answer The key here is using both the where and mutable… May 11, 2026 at 6:32 pm
  • Editorial Team
    Editorial Team added an answer It turns out that I was doing the correct thing… May 11, 2026 at 6:32 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.