Last post Feb 09, 2009 11:06 PM by Shinkun
Feb 09, 2009 12:14 PM|Shinkun|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 04:22 PM|alberto.ferreira|LINK
There's no "DefaultValueProvider":
Feb 09, 2009 04:45 PM|Shinkun|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 05:18 PM|alberto.ferreira|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 06:02 PM|Shinkun|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 06:39 PM|levib|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 11:06 PM|Shinkun|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