-
-
Notifications
You must be signed in to change notification settings - Fork 833
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
Error after update Autofac.Mvc5 from 3.3.2 to 3.3.3 #572
Comments
This occurs when attempting to access If neither of these is the case, then you get this exception. Look at the stack trace in the exception. In your application, set a breakpoint in your code where you're accessing What is inside If you can't figure it out, can you post a small repro that shows the issue? |
Thanks for the answer, I'll do an example to demonstrate the error |
I have the same problem after updating to Autofac.Mvc5 3.3.3. Also i'm using Registration code:
ServiceLocator is Microsoft.Practices.ServiceLocation |
I found the solution for my problem. I replaced this line of code
with this one
|
@hVostt Since no repro has come in for this, I assume you've solved your issue. Feel free to post the repro and re-open if that's not the case. @mubeda The problem in your code is possibly unrelated. You should not be manually registering AutofacDependencyResolver. That happens internally for you. If you continue to see trouble, please file a new issue. |
Hello. I have issue after this update.
I need this to use in injected property of Custom Membership Provider Please help me to solve this. Best Regards. |
@rodchenkov This would be a great question to ask on StackOverflow. Include this code as well as a description of what's wrong and the things you've tried to solve the issue. |
Hi can you please explain this issue |
I explained the error in the first response in this issue. Scroll up and read the entire thread from the top. |
Hi I saw your comment but I can not understand why this happened with me when I updated Autofac.MVC5 from 3.3.2 to version 3.3.3? |
There's really not anymore to it. The exception comes from somewhere in your code where you're trying to access Truly, that's it. If it's happening after upgrade then it's something you were doing in your code that you probably shouldn't have been doing, like accessing The original comment on this issue provides some tips on how to troubleshoot it. Look at the stack trace the exception is giving you. It should tell you where in your code it's happening. Debug from there. Doing the actual debugging is not something we can help you with. If you do need help, it would probably be good to follow up on StackOverflow and tag your question If you post to StackOverflow, be sure to include the part in your code that is accessing |
Thank you for your reply, but I have no code that uses DependencyResolver.Current or AutofacDependencyResolver.Current |
At this point we need a lot more information - all the information you would post to StackOverflow - in order to say. Please post to StackOverflow the following information and put a link here to the question on StackOverflow:
Again, please post that information to StackOverflow and tag the question |
Oh, it looks like you've already started the question here: As noted by many commenters in there, a lot more information is required to help you. Please update your question with all of the information I noted above. I will also include the list of things we need in comments on that question. We can continue this on your StackOverflow question so there is one consistent single location where all the information is gathered. |
Ok thanks! We do it so. |
Hi We found issue with this update. Below is stacktrace [InvalidOperationException: The dependency resolver is not of type 'Autofac.Integration.Mvc.AutofacDependencyResolver' and does not appear to be wrapped using DynamicProxy from the Castle Project. This issue could be the result of a change in the DynamicProxy implementation or the use of a different proxy library to wrap the dependency resolver.] |
@rodchenkov Again, please update your SO question with this information and expect responses there rather than in this issue. |
@tillig I just updated to Autofac.Mvc5 3.3.3 from 3.3.2 and saw the same issue appear. As the OP said, this happens deep in the MVC stack, but seems related to filters: at Autofac.Integration.Mvc.AutofacDependencyResolver.get_Current() |
I had the same issue. Turns out it is due to MvcSiteMapProvider using it's own DI. |
Since the time this was opened I've added some documentation on challenges with Most likely changes and questions related to this will be addressed in the MVC repository rather than here. Future readers: If you have this issue, please read the updated documentation and if you still feel like you need help, ask a question on StackOverflow with the |
Everything worked fine until I updated the library. Now I get the following message:
"The dependency resolver is not of type 'Autofac.Integration.Mvc.AutofacDependencyResolver' and does not appear to be wrapped using DynamicProxy from the Castle Project. This issue could be the result of a change in the DynamicProxy implementation or the use of a different proxy library to wrap the dependency resolver."
Apparently this is due to this update: #568
Please tell me what to do or how to fix it?
The text was updated successfully, but these errors were encountered: