This repository was archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
No parameterless Constructor defined #4895
Comments
This should be |
That did it. Thanks. |
@rynowak - does the exception message include the type that couldn't be constructed? If not, should we modify places where we call |
We should also consider handling this within the provider. Then you'd get an error about "could not create a model binder for type foo". We don't need to do anything fancy, just have the complex type binder check for a no-arg constructor. |
@fhnainia glad we could help. Let's keep the bug open for now to track and improvement in the experience when this happens. |
kichalla
added a commit
that referenced
this issue
Oct 5, 2016
…FormCollection model type. [Fixes #4895] No parameterless Constructor defined
kichalla
added a commit
that referenced
this issue
Oct 7, 2016
…FormCollection model type. [Fixes #4895] No parameterless Constructor defined
kichalla
added a commit
that referenced
this issue
Oct 8, 2016
…FormCollection model type. [Fixes #4895] No parameterless Constructor defined
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When posting a form with a POCO object and FormCollection object to a Controller Action a SystemMethodException occurs. This was working fine in RC1 but since the upgrade to RC2 the exception started.
Here is the part of the Action:
The text was updated successfully, but these errors were encountered: