Friday, March 13, 2009

'System.Web.Mvc.HtmlHelper' does not contain a definition for 'RenderPartial' and no extension method 'RenderPartial' acceptin

When i try to run a MVC Sample application from Web i was getting this "'System.Web.Mvc.HtmlHelper' does not contain a definition for 'RenderPartial' and no extension method 'RenderPartial' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found." error.

After further research i found that i was running "MVC Preview Release" on my system, which does not support System.Web.Mvc.Html namespace. So i upgraded my MVC from my preview release to "MVC 1.0 RC2".  RC2 release can be downloaded from here.

No comments:

Post a Comment