【问题标题】:Two windows services in the same time and the same dll's两个windows服务同时使用同一个dll
【发布时间】:2012-01-13 00:01:09
【问题描述】:

我想同时打开两个服务,并且我对它们都使用相同的 .dll:

得到最奇怪的错误:

windows service .net Cannot start service on computer '.'.

此错误是在第一个服务启动并运行之后, 我应该如何解决这个问题?

提前致谢。

【问题讨论】:

标签: c# windows-services


【解决方案1】:

实际上,这两个实例需要不同的名称/路径。限制来自Windows。另一种方法是托管在 TopShelf 之类的东西中,它允许您以这种方式快速垂直扩展。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-19
    • 1970-01-01
    • 2015-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多