Windows服务在Windows Server 2008r2上运行,但不在Windows Server 2012上运行 [英] Windows Service working on Windows Server 2008r2 but not Windows Server 2012

查看:462
本文介绍了Windows服务在Windows Server 2008r2上运行,但不在Windows Server 2012上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everybody

我有一个小型Windows服务,通过套接字连接到另一个服务。

当我在Windows Server 2012上安装它时会发送一条消息在套接字上,很好。

当我重新启动服务时,它通过套接字发送消息,很好。

当我重新启动服务器时它不会发送消息套接字。



Windows Server 2008r2上的一切正常工作。



改变了什么服务明智在Windows Server 2012上?



最好的问候

Alex

Hello Everybody
I''ve a small Windows Service that connect via a socket to another Service.
when i install it on Windows Server 2012 it sends a message over the socket, fine.
when i restart the service, it sends a message over the socket, fine.
when i reboot the server it does NOT send a message over the socket.

Everything works as it should on Windows Server 2008r2.

what has changed Service wise on Windows Server 2012?

Best Regards
Alex

推荐答案

它听起来你的服务依赖于其他几个服务(驱动程序)运行才能发送它的数据包。



我会修改你的服务注册以获得依赖在TCP / IP协议驱动程序和Windows防火墙上。它会强制您的服务等到这两个服务在启动之前运行。
It sounds like your service depends on a couple of other services (drivers) running before it can send it''s packet.

I would modify your service registration to have dependancies on "TCP/IP Protocol Driver" and "Windows Firewall". It''ll force your service to wait until those two services are running before it starts.


这篇关于Windows服务在Windows Server 2008r2上运行,但不在Windows Server 2012上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆