Re: Windows Service in C#
- From: "Alberto Poblacion" <earthling-quitaestoparacontestar@xxxxxxxxxxxxx>
- Date: Tue, 8 Jul 2008 13:23:58 +0200
<emanuelanechei@xxxxxxxxx> wrote in message news:d66f3e2d-0435-4c44-b5d8-04fd06fca9c1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
These days i'm creating a windows service in c# which reads some data
from a file and saves it in a database. The data in the file changes
every minute.
I am using FileSystemWatcher object which monitors that file for
LastWrite event.
The problem is that after the reading of file and writing the data in
the database the service quits unexpectedly.
What happends? I googled but found nothing about it.
Thank you in advance
Try running the service attached to the debugger, so that you can trace execution step by step and see where it is failing. To do this, start the service, and then from Visual Studio select Debug -> Attach to Process, and select the service that you started. In this way you can use the debugger against the service in the same way as if you were debugging a standard windows executable.
.
- Follow-Ups:
- Re: Windows Service in C#
- From: Jeroen Mostert
- Re: Windows Service in C#
- References:
- Windows Service in C#
- From: emanuelanechei
- Windows Service in C#
- Prev by Date: Re: Creating dynamic DLinq tuple comparison query
- Next by Date: Re: validation for dynamic asp.net textbox
- Previous by thread: Windows Service in C#
- Next by thread: Re: Windows Service in C#
- Index(es):
Relevant Pages
|