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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:22:21+00:00 2026-05-16T22:22:21+00:00

I created a Windows Service that watches a directory using FileSystemWatcher and when a

  • 0

I created a Windows Service that watches a directory using FileSystemWatcher and when a file is put into the folder it zips it.

All the functionality is in a class I created named FileProcessor.

When I create a Console app that uses FileProcessor the automated zipping works great. However, when I run the class in the Windows Service it never works.

  • 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-16T22:22:21+00:00Added an answer on May 16, 2026 at 10:22 pm

    Check the account and directory your service is running under – does it have permission and visibility to the target directory?

    Add some diagnostics to the class so that you can see what it’s trying to do, and output error information (you are handling any possible OS errors under FileSystemWatcher, right?). You’ll need these anyway when the service goes live. Compare the output when running as service versus in test.

    Add a System.Threading.Thread.Sleep(15000) to your class so that when it’s invoked by your service, you have time to attach the debugger to work out what’s going on.

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

Sidebar

Related Questions

I'm using VB9 (VS2008). I've created a Windows Service that indexes some folders regularly.
I have a windows service using a FileSystemWatcher to monitor a folder, print added
I have created an installation package using Wix which installs a Windows service on
I'm working on a Windows Service that watches a few folders for changes, creations,
I have already created a windows service that monitors the network for some specific
I have created a Windows Service that has a function that creates a new
I am using a wcf service that I created, when both hosting machine and
i created a windows service that move files around between the server's hard drive
I've created a windows service that runs locally and provides a web service which
I have created windows service. I need to run that automatically after 2 minutes.

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.