R
Rob Meade
Hi all,
I have written a small windows service which checks a directory for a new
file, upon receiving one writes a line to the log file and then copies the
file to SQL server.
I've had a few problems with it today, so have been running it in debug
mode - when I do so and step through its all perfect - no problems at all -
as soon as I remove the debugger.launch() line and run the service - whilst
it doesn't error, the database end seems to fail, ie, no new row is
written..
Can anyone suggest what might be wrong here? The service is using a
database connection which specifies the user id and password to use on the
database, so my initial though of "oh it must be permissions" may well be
wrong...
The service is running under the LocalSystem account.
If anyone has any ideas I'd love to hear from you...this has gone quite well
thus far but cant really run it in debug mode for ever!
)
Thanks in advance for any help - will post code if applicable.
Regards
Rob
I have written a small windows service which checks a directory for a new
file, upon receiving one writes a line to the log file and then copies the
file to SQL server.
I've had a few problems with it today, so have been running it in debug
mode - when I do so and step through its all perfect - no problems at all -
as soon as I remove the debugger.launch() line and run the service - whilst
it doesn't error, the database end seems to fail, ie, no new row is
written..
Can anyone suggest what might be wrong here? The service is using a
database connection which specifies the user id and password to use on the
database, so my initial though of "oh it must be permissions" may well be
wrong...
The service is running under the LocalSystem account.
If anyone has any ideas I'd love to hear from you...this has gone quite well
thus far but cant really run it in debug mode for ever!

Thanks in advance for any help - will post code if applicable.
Regards
Rob