1

I have just created a windows service. Since there isn't really a way to debug services(that I know of)I created the majority of the application as a desktop console application that accessed the libraries I created that it uses. When doing this everything worked great. So once I created the service to do the same job the console was doing(all the console did was open and automatically start it's job) and installed it with sc.exe and started it up, it doesn't seem to be doing it's job which is basically listening for connections.

Is there anything else I have to do for my service to be able to access these libraries? Do I have to somehow register them so they will work together? This is a standard windows service created in C#.

4

1 回答 1

1

我很高兴你让它工作。我知道我已经看到很多人有这个问题......并且认为我自己的问题被否决了。但无论如何,这些被称为加载器服务(微软)而不是 Windows 服务。除了前者具有与 GUI 交互的能力之外,它们是相同的。


我知道几个月后这个答案,但是......你的问题不是图书馆......它的过程本身。使用这个线程,我能够为这个问题创建自己的解决方案,因为很多人都有这个问题,但没有人直接给出解决方案。我的解决方案 - C# Windows 服务创建进程但不执行它

于 2013-11-09T12:00:37.613 回答