为什么Windows Server 2003上的服务安装失败? [英] Why service installation is failing on windows server 2003 ?

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

问题描述

我正在使用Windows服务从PDF文件中提取数据。我能够在Windows 2008 r2服务器/ Windows 7操作系统等中使用相同的功能。但在尝试安装服务时,部署失败。我正在使用.Net框架4.

该服务未及时响应启动或控制请求。



我尝试过:



我正在使用Windows服务从PDF文件中提取数据。我能够在Windows 2008 r2服务器/ Windows 7操作系统等中使用相同的功能。但在尝试安装服务时,部署失败。

解决方案

你有没有在本地测试它作为服务?



服务必须在不到30秒的时间内从每次通话(开始,停止等)返回。



服务调用应该启动一个单独的线程,并允许调用返回到调用代码。根据我上面的评论,只有你想要添加一个调试器并需要大约10秒的延迟才能放手。



如果你已经在做然后让我知道,我会更深入。如果您发布IService实现方法(启动,停止)也会有所帮助。



希望有帮助

Andy

I am using a Windows Service to extract data from a PDF File. I am able to work with the same in windows 2008 r2 server/Windows 7 OS etc. But while trying to install the service the deployment is failing. I am using .Net framework 4.
The service did not respond to the start or control request in a timely fashion.

What I have tried:

I am using a Windows Service to extract data from a PDF File. I am able to work with the same in windows 2008 r2 server/Windows 7 OS etc. But while trying to install the service the deployment is failing.

解决方案

Did you test it as a service locally?

The service must return from each call (start, stop etc) within less than 30 seconds.

Service calls should start a separate thread and allow the call to return to the calling code. The ONLY delay in letting go is if you want to add a debugger and need a delay of about 10 seconds, as per my comment above.

If you are already doing that then let me know and I'll look deeper. It would be helpful if you post the IService implementation methods (start, stop), too.

Hope that helps
Andy


这篇关于为什么Windows Server 2003上的服务安装失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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