在Windows Server 2012中安装的Windows服务 [英] Windows service installing in Windows server 2012

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

问题描述

安装Windows服务后我遇到了一个奇怪的问题。



这个Windows服务会调用一种方法每5分钟发送一次邮件。



我使用C#visual Studio 2010开发了Windows服务。



开发完成后我采用了发布版本并安装在我的系统(即Windows 7操作系统)中,它没有任何问题。



一旦在Windows服务器2012中完成同样的事情,那么服务将安装但之后没有任何事情发生。



我目前使用过System.Threading.Timer。甚至我尝试使用System.Timers.Timer。这两个都可以在我的系统中工作,但不能在服务器上工作。



如果需要我可以发布代码。



问候,Nuthan AR

解决方案

我猜你已经检查过像Framework这样的显而易见的东西了?



.Net Framework在Windows 2012服务器上不支持此功能,直到Framework Version 4.5


请检查事件查看器。它可能会为您提供有关该问题的更多详细信息。

I'm facing a strange problem after installing the Windows service.

This Windows service will call a method to send mail every 5 minutes.

I have developed the windows service using C# visual Studio 2010.

After the development I have taken the release build version and Installed in my system (that is windows 7 OS) and it works without any problem.

Once the same thing is done in the Windows server 2012 then the service will be installed but the nothing happens there after.

I have used System.Threading.Timer at present. Even I tried using System.Timers.Timer. Both of these will work in my system but wont work in the Server.

I can post the code if required.

Regards, Nuthan A R

解决方案

I guess you've checked the obvious things like Framework version ?

.Net Framework didn't support this on Windows 2012 server until Framework Version 4.5


Please check event viewer.It may provide you more details about the issue.


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

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