Open ww2406 opened 1 month ago
Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones See info in area-owners.md if you want to be subscribed.
Hi, can you provide a self-contained repro project which we can run locally to investigate the issue?
This issue has been marked needs-author-action
and may be missing some important information.
This issue has been automatically marked no-recent-activity
because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity
.
Description
Periodically, I am experiencing an ObjectDisposedError on
SafeAccessTokenHandle
when accessing through a server-side Blazor app with Windows authentication enabled.Reproduction Steps
It doesn't happen all the time, so I'm not sure exactly what reproduces it. This is the code I've used (including a clone I tried, which doesn't resolve the issue).
Named client configuration:
Service code:
Expected behavior
The safe access token handle is not disposed while I am executing my code.
Actual behavior
The safe access token handle is being disposed before my code executes.
Regression?
I don't know for sure that it is, but there were previous attempts to address this...
26446
https://github.com/dotnet/aspnetcore/issues/3217
Known Workarounds
No response
Configuration
.NET 8.0.401 Win 10 x64 Blazor: Browser is Edge, but shouldn't make a difference here
Other information
No response