-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Intercept action controller with arguments in mvc 5 throw exception #419
Comments
Seems to blow up here. No idea why though |
Seems related to custom attributes |
Progress so far is that I tested with an inherited controller to see if that was a problem The generated proxy type is also just a subclass of the controller. Using the following
This however does not work
Next step is to see how the generated proxy type and the |
When overriding a method we don't set the parameter names. That could be a problem with regards to model binding.
Notice how the parameter name is missing in the generated proxy
|
That's it. Adding the parameter name to the proxy method seems to fix the issue |
@zu1779 LightInject.Interception 2.0.1 is now available from the official NuGet feed |
I'm not able to intercept a controller action with arguments.
I'm using Asp.Net MVC 5.2.6 with LightInject 5.1.3 and LightInject.Interception 2.0.0.
I receive the following error:
My code is (I do not insert views because are meaningless):
My Controller is:
The text was updated successfully, but these errors were encountered: