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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:54:37+00:00 2026-06-12T17:54:37+00:00

I need to implement simple file watcher utility. I have decided to implement this

  • 0

I need to implement simple file watcher utility. I have decided to implement this in a simple windows service which will internally use FileSystemWatcher. The purpose is to monitor given directory path (or ftp) and copy the file to some other server wherever new file comes in after checking some predefined logic

As I am using .net 3.5; client suggested me to use WCF. I have very less experience in WCF.

I am not sure how I can create WCF service which will function like WindowsService and can be deployed in services on windows server.

To be a futuristic is it a good idea to create WCF service instead of windows service, or I should insist on window service.

  • 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-12T17:54:38+00:00Added an answer on June 12, 2026 at 5:54 pm

    Windows Service != WCF

    You can’t create a WCF service that acts functions like a windows service. A WCF service waits for messages from third parties and acts on them, a windows service is a process that is always running in the background. WCF tries to solve the problem of separating out the communication mechanism (transport protocols such as Tcp, Http, Named Pipe, etc) from the service interfaces.

    File Watcher Utility

    While in theory it’s possible to create a new Flat-File binding in WCF that “could” have it’s address set to a file system location, one does not exist directly in the .NET framework. Looking at the Custom Bindings article on MSDN it’s not immediately obvious to me how one would construct a File System binding. These are the defined transport options available:

    1. TCP
    2. HTTP
    3. HTTPS
    4. Named Pipes (IPC)
    5. Peer-to-Peer (P2P)
    6. Message Queueing (MSMQ)
    7. Custom

    If communication must be done through file drops, then WCF does not solve your problem.

    Where WCF Might Work

    What the client might have meant is to create a WCF endpoint that does the copy the file to some other server wherever new file comes in after checking some predefined logic, but you would still want to have a windows service with a FileWatcher monitoring the input directory.

    If you have multiple clients that need to be able to perform that same logic and then send the output to that other server then it might make sense to make the WCF service, otherwise it’s over-engineered at this point.

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

Sidebar

Related Questions

I need to implement a simp^le find function which will retrieve the 1st occurence
I need to implement a very simple web-server-like app in Python which would perform
I need to implement a simple logging mechanism for my web application. I have
I want to implement this use case found on the W3C File API document:
I need to implement a simple indexing scheme for a big text file. The
I need to implement a simple monitoring app in Excel. It is for monitoring
I need to implement a simple probe that uses open microsoft rdp protocol. But
I'm using CodeIgniter and need an easy to implement captcha. Something simple, nothing too
I need to implement the following: There is a table A which is supposed
First some background. I'm parsing a simple file format, and wish to re-use the

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.