Known issue in the MVC 2 RC. It will be fixed in the next preview drop. For now, leave the second parameter off the call to UpdateModel(), e.g. your call should look like UpdateModel(movie).
Is the ASP.NET MVC 2 mature enough to be used in real application?
That's a decision your organization needs to make for itself. Personally I would use it over MVC 1 in my own projects, but if you need things like official product support note that MVC 2 hasn't been released yet. (Soon!)
As for the product itself, since it's in the RC stage it's pretty functionally complete and we're just squashing some last-minute bugs. I wouldn't expect drastic changes between MVC 2 RC and MVC 2 RTM.
Is the ASP.NET MVC 2 mature enough to be used in real application?
I am impressed with MVC2 and the fast developing ( Templated Helpers)
So I think to go for MVC2 - until March(final release) it is not so much time - and, if you Mock the controlers in order to do testing, you will have all the application ready for upgrade!
henry lu
Member
5 Points
69 Posts
this.UpdateModel(movie, collection.ToValueProvider());
Jan 14, 2010 10:35 PM|LINK
Exception Details: System.ArgumentException: Value cannot be null or empty.
Parameter name: name
I am following the example in the ASP.NET MVC Framework unleashed page229.
levib
Star
7636 Points
1092 Posts
AspNetTeam
Re: this.UpdateModel(movie, collection.ToValueProvider());
Jan 15, 2010 02:47 AM|LINK
Known issue in the MVC 2 RC. It will be fixed in the next preview drop. For now, leave the second parameter off the call to UpdateModel(), e.g. your call should look like UpdateModel(movie).
henry lu
Member
5 Points
69 Posts
Re: this.UpdateModel(movie, collection.ToValueProvider());
Jan 15, 2010 03:10 PM|LINK
Thank you very much for the info. One more question:
Is the ASP.NET MVC 2 mature enough to be used in real application?
levib
Star
7636 Points
1092 Posts
AspNetTeam
Re: this.UpdateModel(movie, collection.ToValueProvider());
Jan 15, 2010 05:20 PM|LINK
That's a decision your organization needs to make for itself. Personally I would use it over MVC 1 in my own projects, but if you need things like official product support note that MVC 2 hasn't been released yet. (Soon!)
As for the product itself, since it's in the RC stage it's pretty functionally complete and we're just squashing some last-minute bugs. I wouldn't expect drastic changes between MVC 2 RC and MVC 2 RTM.
ignatandrei
All-Star
107521 Points
16384 Posts
Moderator
MVP
Re: this.UpdateModel(movie, collection.ToValueProvider());
Jan 16, 2010 05:35 AM|LINK
I am impressed with MVC2 and the fast developing ( Templated Helpers)
So I think to go for MVC2 - until March(final release) it is not so much time - and, if you Mock the controlers in order to do testing, you will have all the application ready for upgrade!