Skip to content

When following the steps in this article the service can not be started #34601

Closed
@dcarapic

Description

@dcarapic

Description

I've followed the steps in the article and I've also tried the sample applications.
In all asses I get the error 1053: The service did not respond to the start or control request in a timely fashion.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/windows-service?view=aspnetcore-9.0&tabs=visual-studio

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/host-and-deploy/windows-service.md

Document ID

4b60d24e-ef05-15e5-10b4-483094081bf3

Article author

@tdykstra

Metadata

  • ID: b0bd8cb8-7e28-8c4d-a550-3aea8f3ab4dd
  • Service: aspnet-core
  • Sub-service: hosting-deployment

Related Issues

Activity

Rick-Anderson

Rick-Anderson commented on Jan 31, 2025

@Rick-Anderson
Contributor
    • Try Increase the Service Startup Timeout, although for the sample app I doubt that would help.
    • Messages in the event viewer?
    • Does the account have the necessary permissions?
    • Get-Service -Name {SERVICE NAME} ?
    • Does the app run from the command prompt?
    • dotnet --version
    • hosting bundle version?
    • [ ]

Have you tried https://learn.microsoft.com/en-us/dotnet/core/extensions/workers ?

dcarapic

dcarapic commented on Jan 31, 2025

@dcarapic
Author

The problem was that I had additional things in the test application before reaching the app.Run part. It seems that service manager is very picky about time needed to start.
You can close this ticket.
Sorry for wasting your time.

self-assigned this
on Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    When following the steps in this article the service can not be started · Issue #34601 · dotnet/AspNetCore.Docs