问题 I have created a windows service app which has OnStart method. The method will read a path from the app.config file, create an object, then the service write the object's overridden ToString() method to a file with a StreamWriter . This is working when I manually start this service with " net start ". So the OnStart method called, object created and written its ToString method to a file. I set it as an automatic running service, when the Windows starts up. My problem is, that this OnStart