Skip to content

'InvalidOperationException' in 'Stop-Service' command #11858

@nxtn

Description

@nxtn

To be fixed by #11851

Steps to reproduce

None. See #11851 for better understanding.

Expected behavior

No exception will be thrown.

Actual behavior

An exception will be thrown if any previously started dependent service that could be stopped was not stopped after a service was forced to stop.

-or-

An InvalidOperationException will be thrown if the Status of any of ServiceController.DependentServices whose Status was Running or StartPending and whose CanStop was true did not became Stopped or StopPending after a Stop-Service command was executed with the -Force flag for a service.

Environment data

None.


Please start your discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions