You develop a service application named PollingService that periodically calls long-running procedures.These procedures are called from the DoWork method.You use the following service application code: When you attempt to start the service, you receive the following error message: Could not start the PollingService service on the local computer.Error 1053: The service did not respond to the start or control request in a timely fashion. You need to modify the service application code so that the service starts properly.What should you do?()
您正在开发一个名为:PollingService的服务,这个服务定期的调用一些需要长时间运行的过程。这些过程被DoWork方法发出相应命令来执行。您的服务代码如下: (当您尝试启动该服务,您收到以下错误信息:无法启动本地计算机上的PollingService服务。错误1053:服务不响应启动或控制。您需要修改应用程序代码的服务,使服务正常启动。你应该怎么做?)()