-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The installed service did not respond to the start or control request in a timely fashion. #8
Comments
Hey mate, np. It's quite easy what went wrong. You actually overdid it. This is aimed at making your life easier so all you have to do is : |
Thank you very much Peter for quick answer and good work The following command: The response is following: This is enough for me Simple question why we have error with sc.exe utility ?. This utility can change the display name of the Service and have the advantage. |
Simple question but the answer would be quite complicated. In essence, this util serves like a wrapper for windows layer that deals with services. Basically if you could do what you tried directly, this lib won't be needed at all. For convenience I've added the action:blabla (there's install uninstall stop start and so on, checkout the docs) to make it easier to work with. |
Am I mad or was there an extra question that disappeared over night? Maybe you figured it out but I've reopened it just in case you wanted to discuss something extra about this. |
It was the question about Name of the Service and DisplayName of the Service. I have figured out how make this. Thanks again |
Cool, np. Closing for real now. |
Hey Peter.Thanks for the project it has helped me a lot. But I'm having problem to connect with my database and post that data into notepad.Can You Help Me??? Thanks in Advance |
Sure I can help out but pls, create a new issue and give me some more info about the problem you are having @famous1234 |
Thank You For Your Reply... |
class Scheduler
|
class DBLibrary
|
These are my classes that I created to get data from database and paste it to notepad but I created that in windows service template and I couldnt reference it to my asp.net core web application and post it to my facebook using API. Hence I found your project that just writes datetime to notepad. But I need to get data from database to post it in my API. Thank You... |
I don't know if this was resolved but I am able to run the application as a non service. However, the moment I try to install I receive a timeout error.
I will say I am using DI and I am not sure if that's the issue or if I am not configuring it correctly.
`public class Startup
`public class ServiceHost : IServiceHost
|
@samirbanjanovic |
@PeterKottas thank you,your answer helped me |
@PeterKottas I am receiving the same 1503 error when I attempt to start my service. I have tried multiple ways to create my service, which all appear to work. I have tried using dotnet.exe and sc.exe. I can get the service to work in the background. However, I have never been able to create the service, have it show in the "Services" dialog, and start/stop it from there. This is very important because I need a way to easily see the state of the service. I get the same 1503 error every time when I try to start it there. I am not sure what I am doing wrong, because my console application follows the PeterKotas.DotNetCore.WindowsService example (with necessary content changes, of course). As an fyi, I am also trying to build this into a VSTS/Azure DevOps deployment pipeline. |
Hi Peter.
Thank you in advance for your help.
I have installed your tool. The example service is working properly as console application. I can also successfully create window service using following command in administrator mode:
D:\Applications\DotNetCoreWindowService\DotNetCore.WindowsService\Source\PeterKottas.DotNetCore.Example\bin\Debug\netcoreapp1.1\win10-x64>sc create PeterKottas binPath= "C:\Program Files\dotnet\dotnet.exe D:\Applications\DotNetCoreWindowService\DotNetCore.WindowsService\Source\PeterKottas.DotNetCore.Example\bin\Debug\netcoreapp1.1\win10-x64\PeterKottas.DotNetCore.Example.dll --run-as-service"
[SC] CreateService SUCCESS
When I am trying run the service by command
sc start PeterKottas (Administrator Mode)
I have the following error:
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
My working environment
Version 14.0.25422.01 Update 3
Any help will be appreciated.
Best Regards,
Vladimir
The text was updated successfully, but these errors were encountered: