I am developing a Windows Service using C# 2010 and i am using the FileSystemWatcher. For some reason, i am unable to start my service.

I get the following message when i try to run my service.

> 
> The -service- on Local computer started and stopped. Some services start automatically if they are not in use in other services or programs.
> 
> 
> 

This occurs when i put this piece of code :

OnStart:

```
FSWatcherTest.Path = ConfigurationManager.AppSettings["WatchPath"].ToString();

```

and then in a method: 

```
private void InitializeComponent()
{
     this.FSWatcherTest = new FileSystemWatcher();
     ((System.ComponentModel.ISupportInitialize)(this.FSWatcherTest)).BeginInit();

       this.FSWatcherTest.EnableRaisingEvents = true;
       this.FSWatcherTest.Path = "my path";
       this.FSWatcherTest.Changed += new      FileSystemEventHandler(this.FSWatcherTest_Changed_1);
       ((ISupportInitialize)(this.FSWatcherTest)).EndInit();

}

```

Waiting for some possible answers. Thank you in advance!