Geeks With Blogs

@chriscanal
  • chriscanal Is a porn movie against Kickstarter's TOS....? about 3 days ago
  • chriscanal Really want to install R#8 again, is it still slooow? about 9 days ago
  • chriscanal @ehexter Doesn't that seem a little sexist to you? Generalizations and all that about 10 days ago
  • chriscanal Has to uninstall R# 8, was slowing me down :( about 16 days ago

Chris Canal A Scottish .NET Developer

I've just upgraded to the latest version interim drop of the MVC framework and MVC Contrib (which I can't seem to build from source using NAnt...).  Everything appeared to be ok, except for one thing: a controller action that uploads a file was now throwing an error:

cannot convert from 'System.Web.HttpPostedFileBase' to 'System.Web.HttpPostedFile'

After a few seconds of confusion I quicky dawned on me that this might be a very good thing.  A quick look at the System.Web.Abstractions confirmed my throughts, it now contained abstractions for HttpPostedFile and HttpFileCollection!

Color me happy, the only code I couldn't get covered was Actions that handled file uploads.

Posted on Wednesday, April 23, 2008 8:18 PM tdd , bdd , aspnetmvc | Back to top

Copyright © Chris Canal | Powered by: GeeksWithBlogs.net | Join free