0

I've just converted an application from MVC 1 to MVC 2 using the VS2010 wizard. Not found is the Html.RenderPartial which I have sprinkled around a number of views. I am guessing that this is something that I've done wrong because I see no mention of this as a breaking change in the white papers and docs. Everything I'm using is RTM/RTW and no beta or RC versions.

EDIT: On closer inspection it looks like all the extension methods on the Html class are missing so I guess that I'm missing an include somewhere but I can't find it yet so any suggestions welcome...

2 Answers 2

3

I think the location of these extensions has been moved to a different assembly. Try adding a reference to System.Web.Mvc.Html, and I think it should cover it. Also make sure that VS has added the correct reference to the MVC library version 2, instead of the old v1 )

Sign up to request clarification or add additional context in comments.

Comments

1

What I did is to first convert from MVC1 to MVC2 with this. Then I used the Visual Studio 2010 to convert the project for 2010.

Most probably the Visual Studio wizard doesn't convert from MVC1 to MVC2.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.