Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Text & File Protocol with Windows Service


#1

Hi,

When I run my application on the console, the logging is working well (binary file & ascii txt files).
Running the same application as Windows Service, there are no logfiles available. There are no error messages available.

What can cause this issue?

Best regards,
Stijn.


#2

Hello Stijn,

Thanks for your posting. When you configured the connection string (either via a configuration file or via the Connection property), have you also specified a full path instead of just the file name? If not then SmartInspect uses the current directory of the process, which could be C:\Windows\System32 for a service, for example.

Please make sure to specify a full path and that the service also has the permissions to write to this directory.

You can learn about any errors by binding the Error event of the SmartInspect instance.

Thanks,
Dennis