Skip to content

Failing test: Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails #137647

Open

Description

@jkotas
  Starting:    Microsoft.Extensions.Hosting.WindowsServices.Tests (parallel test collections = on [4 threads], stop on fail = off)
    Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails [FAIL]
      Assert.Throws() Failure: No exception was thrown
      Expected: typeof(System.InvalidOperationException)
      Stack Trace:
        /_/src/libraries/Microsoft.Extensions.Hosting.WindowsServices/tests/UseWindowsServiceTests.cs(180,0): at Microsoft.Extensions.Hosting.UseWindowsServiceTests.AssertServiceDeleted(String serviceName)
        /_/src/libraries/Microsoft.Extensions.Hosting.WindowsServices/tests/UseWindowsServiceTests.cs(109,0): at Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails()
        /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/InstanceCalliHelper.cs(76,0): at System.Reflection.InstanceCalliHelper.Call( fn, Object o)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1682936
Build error leg or test failing: Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails
Pull request: #137511

Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails [FAIL]",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1682936
Error message validated: [Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails [FAIL]]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/16/2026 6:03:02 PM UTC

Report

Build Repository Test Pull Request
1688691 dotnet/runtime Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails #137289
1687389 dotnet/runtime Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails #137769
1686846 dotnet/runtime Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails #136206
1686562 dotnet/runtime Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails #137780
1686568 dotnet/runtime Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails #137781
1685843 dotnet/runtime Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails #137744
1685156 dotnet/runtime Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails #136705
1682936 dotnet/runtime Microsoft.Extensions.Hosting.UseWindowsServiceTests.CanDeleteServiceWhenRemoteProcessFails #137511

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 8 8

Activity

  1. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    on Nov 16, 2026
  2. dotnet-policy-service commented on Nov 16, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-extensions-hosting
    See info in area-owners.md if you want to be subscribed.

  3. added this to the Future milestone on Nov 19, 2026
  4. removed
    untriagedNew issue has not been triaged by the area owner
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-Extensions-Hostingblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions