Skip to content
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

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

Open
aseemamitesh opened this issue May 14, 2024 · 1 comment
Open

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

aseemamitesh opened this issue May 14, 2024 · 1 comment

Comments

@aseemamitesh
Copy link

aseemamitesh commented May 14, 2024

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
@aseemamitesh
Copy link
Author

image

Error detail from event manager
Faulting application name: ExampleServiceHost.exe, version: 1.3.0.0, time stamp: 0x88bf0740
Faulting module name: KERNELBASE.dll, version: 10.0.20348.2400, time stamp: 0x08763f47
Exception code: 0xe0434352
Fault offset: 0x00139072
Faulting process id: 0x234
Faulting application start time: 0x01daa5bf51ecadce
Faulting application path: Service Directory Path\ExampleServiceHostt.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 1db6a7da-d5a5-42a9-8933-70477152e8f6
Faulting package full name:
Faulting package-relative application ID:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant