Closed blowdart closed 6 years ago
The stack trace resembles https://github.com/aspnet/Logging/issues/543#issuecomment-321907828. In that case the user was being accessed after disposal in app cleanup logs. https://github.com/aspnet/Common/issues/85 may also be related, but that doesn't include a stack trace.
This case appears to be happening inside the MVC authorization filter. Can you inspect the User to make sure it's an instance of WindowsPrincipal and that it has not been disposed?
Can you inspect the User to make sure it's an instance of WindowsPrincipal and that it has not been disposed?
I can't inspect. This bug is production only and can't reproduced at debug time and in testing.
Another matching stack https://github.com/dotnet/corefx/issues/15226
Closing as dup
From @sandrey80 on January 28, 2018 15:50
Windows Identity with ASP.net Core 1.3 self-hosted app with WebListener
Some times i'm getting error
at methods like 'User.IsInRole(group)' or 'User.Identity.Name' and app crashed at this dumb method
The stack trace looks like that:
Can't reproduce it on debug, but at production get crashed once a week.
Any suggestions?
Copied from original issue: aspnet/Identity#1601