Skip to content

[error][servername]: Service responded with [7]. #67

@aseemamitesh

Description

@aseemamitesh

Hello I am using this task to deploy my service in an azure vm and getting the following error

[server]: Attempting to locate [ExampleService]
2024-05-14T05:26:47.0754716Z [servername]: ***dentified [Example Service] installation directory [Path of service directory]
2024-05-14T05:26:47.0767834Z [servername]: Copying [C:\azagent\A1_work\8\drop\XXX] to [Path of service directory]
2024-05-14T05:26:48.7505135Z [servername]: Starting [ExampleService]
2024-05-14T05:26:56.9634504Z ##[error][servername]: Service responded with [7]. See https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/startservice-method-in-class-win32-service for details.
2024-05-14T05:26:57.0267148Z ##[section]Finishing: Deploy Windows Service

The task appears as follows:

  • task: MDSolutions.WindowsServiceManagerWindowsServiceManager.WindowsServiceManager.WindowsServiceManager@4
    displayName: 'Deploy Windows Service'
    inputs:
    DeploymentType: DeploymentGroup
    ServiceName: '$(ServiceName)'
    ArtifactPath: '$(System.DefaultWorkingDirectory)/XXXX'
    InstallService: true
    InstallationPath: '$(System.DefaultWorkingDirectory)/XXX/ExampleServicehost.exe'
    RunAsUsername: username
    RunAsPassword: password
    InstallTopShelfService: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions