Skip to content

System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist #54927

Closed

Description

@Evangelink

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1475888
Build error leg or test failing: ItCanAddDependents
Pull request: #54860

Details

Exception Message
Test method Microsoft.DotNet.Cli.Utils.Tests.DependencyProviderTests.ItCanAddDependents threw exception:
System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist.
CallStack
at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey, Boolean throwOnMissingSubKey)
at Microsoft.DotNet.Cli.Utils.Tests.DependencyProviderTests.DeleteProviderKey(DependencyProvider dep) in //test/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.cs:line 138
at Microsoft.DotNet.Cli.Utils.Tests.DependencyProviderTests.ItCanAddDependents() in /
/test/Microsoft.DotNet.Cli.Utils.Tests/DependencyProviderTests.cs:line 47
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

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": "Test method Microsoft.DotNet.Cli.Utils.Tests.DependencyProviderTests.ItCanAddDependents threw exception: System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1475888
Error message validated: [System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 6/22/2026 9:09:08 PM UTC

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1475888
Error message validated: [Test method Microsoft.DotNet.Cli.Utils.Tests.DependencyProviderTests.ItCanAddDependents threw exception: System.ArgumentException: Cannot delete a subkey tree because the subkey does not exist]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 6/22/2026 9:09:56 PM UTC

Report

Build Repository Test Pull Request
1475888 dotnet/sdk ItShouldDetectFileWithMarkOfTheWeb #54860

Summary

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

Activity

  1. added
    untriaged
    on Jun 22, 2026
  2. removed
    untriaged
    on Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions