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

  • SEARCH
  • Home
  • 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 8040175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:48:41+00:00 2026-06-05T03:48:41+00:00

My situation is that I have a service application that is a console application

  • 0

My situation is that I have a “service application” that is a console application which gets launched by Agent tasks at various times.

Now my requirements have changed a bit and what I thought would only be run by a task scheduler needs to be invoked by a client application running on the intranet.

One problem is that the service uses .NET 4.0 (as opposed to Client Profile) and I don’t want to impose that into an installer and even if I did I don’t want the chance of different versions executing. For this reason, pushing the code into a library seems wrong.

Another problem is that currently I control the scheduling of Agent tasks so I never tried to design the functionality such that more than one instance of the service would be executing a command at the same time. There’s no logic that specifically depends on this being the case but I don’t feel good about assuming it will all work – it just wasn’t designed to work that way.

Basically, I know what needs to be done here. What I’m asking is what is the modern and efficient way to accomplish it. Should I look at WCF? Is there a really simple way that I’m overlooking?

Here’s a picture of what I’m thinking to hopefully make it clearer.

enter image description here

  • 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. Editorial Team
    Editorial Team
    2026-06-05T03:48:42+00:00Added an answer on June 5, 2026 at 3:48 am

    WCF should be a right choice and it is simple and powerful.

    Client profile supports it – http://msdn.microsoft.com/en-us/library/cc716765.aspx

    Number of instances and services are controlled in WCF using behaviors.
    Configuration below should guarantee that only one method is run at the same time. You may play with parameters (remove maxConcurrentCalls="1" ) if it is fine to run several methods at the same time but only one instance should be executed.

     <behaviors>
          <serviceBehaviors>
            <behavior>
              <serviceThrottling 
                maxConcurrentCalls="1" 
                maxConcurrentSessions="1" 
                maxConcurrentInstances="1"
              />
            </behavior>
          </serviceBehaviors>
    </behaviors>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Situation I have a client library that uses the Windows Azure AppFabric Service Bus
imagine a situation where you have an application that needs to import data from
Situation: I have a web application which shows errors and where you can accept
Current Situation: Direct Binding I have an NSTableView which displays the data that comes
If I have a Server/Client application that both reference the same DLL which contains
I have created a .Net application to run on an App Server that gets
have a weird situation. I'm using Glassfish server for my Enterprise application. In that
I have a situation where a WCF service kicks off a .NET application and
Background : I have a C# Windows Forms application that contains a Windows service
I have a situation where I am running in a WCF service that has

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.