Html.Partial ( ) is not working with _grid.cshtml

1.3k Views Asked by At

i have a web application developed in MVC 3 using VS2010. But when i open it through VS 2013 i am shown the following error.

    System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 
   'Partial' and no extension method 'Partial' accepting a first argument of type  
   'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using
    directive or an assembly reference?

And i now VS 2010 is also showing the same error. what to do? Plz help me out..

2

There are 2 best solutions below

0
On

add this namespace and see if it helps

System.Web.Mvc.Html

5
On

this is the solution check the link it will be of better help

warnings - html.helpers not recognized after project update

the person experienced the same problem read through it,your problem is bullet 4 and good luck

like tommy said ">>>The assembly versions need to match what you have upgraded to<<<. Also, after making these changes, you may need to do a clean/rebuild in VS to ensure you have cleared the old assemblies out."