You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application when the HttpRequest is done the RequestServices in the HttpContext is already disposed. the Report function is called after the HttpContext is disposed so an Exception is throw (searching for ISunsetPolicyManager).
The problem was not happening before the refactoring in Asp.Versioning package
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Something strange is happening. The current HttpContext and its IServiceProvider, even scoped, should still be available at this point in time. Are you able to put together the world's simplest repro? That would help troubleshoot where things have gone wrong.
FWIW, this issue shouldn't exist in .NET 8 since ISunsetPolicyManager was added as an injected service to the constructor. This wasn't possible in .NET 6 without introducing a breaking change (which I will only do at major versions).
Is there an existing issue for this?
Describe the bug
In my application when the HttpRequest is done the RequestServices in the HttpContext is already disposed. the Report function is called after the HttpContext is disposed so an Exception is throw (searching for ISunsetPolicyManager).
The problem was not happening before the refactoring in Asp.Versioning package
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: