-
-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Occational null ref in CreateProxy #653
Comments
@HaoK, I cannot explain the failure without further digging, but I know these code paths quite well. At first glance, it appears that DynamicProxy is failing unexpectedly while trying to look up the requested proxy type in its type cache. We have recently fixed some concurrency / threading issues in Castle DynamicProxy 4.3.1 related to For this reason, I would suggest that you e.g. update Moq to version 4.9.0, which uses DynamicProxy 4.3.1. There's a slim chance that this might resolve your issue. (Note also that we've had reports that upgrading Moq from 4.7 to 4.8 / 4.9 might cause some inital assembly binding problems because recent Moq versions reference some additional If an upgrade to Moq doesn't resolve this issue, we'll need to take a closer look. Please let me know if you're OK with proceeding in this manner. |
I am going to close this issue since there's nothing we can do at Moq's end for now. If this problem persists even after upgrading Moq to 4.9.0+ (or rather, after upgrading Castle.Core to 4.3.1+) then please post here again so we can reopen. |
We are seeing some rare null refs come from Moq: original issue: aspnet/Identity#1912
There's not too much going on here, but this sometimes fails rarely with:
Any ideas what could be going on?
The text was updated successfully, but these errors were encountered: