Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 09, 2009 10:06 PM by Shinkun
Feb 09, 2009 11:14 AM|LINK
Last day i ran into an issue related to the DefaultValueProvider. So here's the scenario:
I had a class library project which was created using framework v.2.0. After a while we decided to convert it to a v.3.5 project. All went fine until we started implementing value providers. Aparently DefaultValueProvider is part of the System.Web.Mvc dll,
which by the way is included in the project referencesk but somehow the compiler doesn't seem to find the reference and just keeps on telling "missing assembly reference".
mvc .net 3.5 DefaultValueProvider System.Web.Mvc
Feb 09, 2009 03:22 PM|LINK
There's no "DefaultValueProvider":
Feb 09, 2009 03:45 PM|LINK
Ok, my bad here...problem was solved. VS2008 somehow mixed up my reference to System.Web.Mvc and was referencing the dll from preview 4 instead of the one from the beta release.
And alberto, contrary to what you say DefaultValueProvider class does exist! Reference to that class can be seen in Scott Hanselman's blog (here:
Anyway thanks for time and help :)
Feb 09, 2009 04:18 PM|LINK
Glad to know that you solve it.
And alberto, contrary to what you say DefaultValueProvider class does exist!
DefaultValueProvider Class doesn't exist: when Scott say "defaultValueProvider" is meaning the default way values are retrived, using Getvalue from FormCollection.
preview 4 instead of the one from the beta release.
MVC is on RC development stage (after Beta).
Feb 09, 2009 05:02 PM|LINK
Either my eyes are deceiving me or does it say "class System.Web.Mvc.DefaultValueProvider" right under DefaultValueProvider. And no, i did not implement my own DefaultValueProvider...
just to let you know that it really does exist! And believe me...it can be very useful :P
Feb 09, 2009 05:39 PM|LINK
Hello Shinkun -
As of the RC, there is no DefaultValueProvider type. Please use ValueProviderDictionary instead. If your code references the DefaultValueProvider type, you are using an old codebase and an obsolete type.
Feb 09, 2009 10:06 PM|LINK
Once again...my bad! Thank you both for your replies
Guess that from now on i should pay more attention to the updates =) ...and redo some of my code