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 6189093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:20:54+00:00 2026-05-24T02:20:54+00:00

I have a Windows 2008 R2 Server running IIS 7.5. Currently, I use WCF

  • 0

I have a Windows 2008 R2 Server running IIS 7.5. Currently, I use WCF to expose an interface to the outside where the code then calls routines from my DLLs.

I would like to move away from this direct access and create some sort of daemon in C# that I can run in the background. I will use the daemon to monitor threads, accept requests, and balance performance. I plan on allowing the daemon full access to the DLLs of my main application and then will have WCF services pass on commands to the daemon as they are received.

I have looked on the Internet and found a few examples about creating a Windows Service, building installers, and registering the service; however, I cannot seem to find any documentation on how to interact with running services via a different application.

Here’s more or less an example of what I am looking to do:

Let’s say I’ve built and installed the sample service depicted here: http://blogs.msdn.com/b/bclteam/archive/2005/03/15/396428.aspx

Now, a customer tells me I need to extend it to allow jobs to run on demand. I have built the necessary functions to allow me to do so, but now I am faced with the issue of determining how to talk to the currently running service to tell it to start processing. How do I do this? Do you have any example links that describe this IPC ?

Thanks!

  • 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-05-24T02:20:55+00:00Added an answer on May 24, 2026 at 2:20 am

    You can send custom commands to a Windows Service, but these are only integer values:

    protected override void OnCustomCommand(int command)
    

    A better solution is to communicate with the Windows Service over “named pipes”. Best way of implementing this is IMHO to create a WCF service with NetNamedPipe binding and host it in the Windows Service itself.

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

Sidebar

Related Questions

Windows 2008 R2 server running PHP 5.3. I have URL Rewrite for IIS working
We have an ASP.Net [MVC] web farm (Windows Server 2008 R2 running IIS). For
I have IIS 7.0 running on a Windows Server 2008 R2 Standard. I tried
I have an ASP.NET application running on a Windows Server 2008 box with IIS
I have a Windows 2008 server running IIS 7 and I'm trying to configure
I have an application running on a Windows Server 2008, that is processing uploaded
I am currently using Windows Server 2008 Standard and have several Hyper V machines.
I have Windows Server 2008 R2 with IIS7 on it. I deployed WCF service
I have a Virtual Machine running the following: Windows Server 2008 SharePoint 2007 SP1
I have an ASP classic web application running on windows 2008 r2 server is

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.