Skip to content

[release/10.0] Add ERROR_NETNAME_DELETED to IsPathUnreachableError for Windows localhost removal - #124869

Merged
jozkee merged 2 commits into
release/10.0from
backport/pr-121569-to-release/10.0
Feb 26, 2026
Merged

[release/10.0] Add ERROR_NETNAME_DELETED to IsPathUnreachableError for Windows localhost removal#124869
jozkee merged 2 commits into
release/10.0from
backport/pr-121569-to-release/10.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Backport of #121569 to release/10.0

/cc @jozkee@copilot

Customer Impact

  • Customer reported
  • Found internally

This only affects ResolveLinkTarget(returnFinalTarget: true). Code first tries to open the final file via OpenSafeFileHandle as an optimized approach, and when that fails it checks IsPathUnreachableError to decide whether to fall back to manually traversal with DeviceIoControl. Since ERROR_NETNAME_DELETED was not being categorized as a path unreachable error, the fallback never happens and an IOException is thrown instead.

We don't have customer reports yet, but we expect them to come eventually, and this is technically a regression-from-last-release.

Regression

  • Yes
  • No

This is a regression caused by a Windows OS update that removed localhost support. The error started appearing in CI builds around October 2025.

Testing

The original PR #121569 was merged to main on November 13, 2025 and resolved the CI failures.

Risk

Low. The change adds a single error code constant (ERROR_NETNAME_DELETED = 0x40) and includes it in the existing IsPathUnreachableError pattern match alongside other similar network path error codes (ERROR_BAD_NETPATH, ERROR_BAD_NET_NAME, ERROR_NETWORK_ACCESS_DENIED, etc.)

CopilotAIand others added 2 commits February 25, 2026 19:11
Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
@jozkee

This comment was marked as off-topic.

This comment was marked as off-topic.

@jozkeejozkee added Servicing-consider Issue for next servicing release review area-System.IO and removed area-Interop-coreclr labels Feb 26, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@rbhandarbhanda added this to the 10.0.5 milestone Feb 26, 2026
@rbhandarbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Feb 26, 2026
@jozkee
jozkee merged commit cbc7aa0 into release/10.0Feb 26, 2026
98 of 103 checks passed
@jozkee
jozkee deleted the backport/pr-121569-to-release/10.0 branch February 26, 2026 20:12
jozkee added a commit that referenced this pull request Mar 3, 2026
…ue for UNC paths (#124906)
Backport of #124867 to release/8.0
/cc @jozkee @Copilot
ResolveLinkTarget_Succeeds fails with IOException: The specified network
name is no longer available on Windows versions that have UNC access
disabled, because SymbolicLink_ResolveLinkTarget_PathToTarget_Data was
yielding UNC paths with returnFinalTarget=true, causing Windows to
actually attempt to resolve \\LOCALHOST\share\path.
Test only change for 8.0 (and 9.0), for 10.0 we backported the fix:
#124869.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jozkee <16040868+jozkee@users.noreply.github.com>
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Mar 29, 2026
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.IOServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@jozkee@jeffhandley@AaronRobinsonMSFT@rbhanda