Some further clues from
http://www.infoq.com/news/2010/03/ASP-MVC-Break

"Help methods now return 
MvcHtmlString<http://msdn.microsoft.com/en-us/library/system.web.mvc.mvchtmlstring%28VS.100%29.aspx>
 instead of normal strings. This was necessary in order to support the new HTML 
Encoding Block syntax in ASP.NET. In both classic ASP and ASP.NET, developers 
were used to using <%= expression %> to mix static and dynamic content. 
Unfortunately it is prone to HTML-injection errors. With ASP.NET 4, developers 
can use the new syntax <%: expression %>. This guarantees that any string is 
automatically HTML encoded. If you don't want encoding, the expression must 
return an IHtmlString."

Will tool with this when I get home and see if it's about right.

From: [email protected] [mailto:[email protected]] On 
Behalf Of Tiang Cheng
Sent: Saturday, 27 March 2010 4:52 PM
To: ozDotNet
Subject: MVC 2 Error: System.MissingMethodException

Hi all!

I've converted an MVC 1.0 project to MVC 2.0 and I'm now receiving this error:

Method not found: 'System.String 
System.Web.Mvc.Html.LinkExtensions.RouteLink(System.Web.Mvc.HtmlHelper, 
System.String, System.Web.Routing.RouteValueDictionary, 
System.Collections.Generic.IDictionary`2<System.String,System.Object>)'.

It's called by a basic

<%= Html.ActionLink<InfoController>(x => x.about(), "about us" )

I've had a look at the DLL definitions, and that method does exist. Any MVC 
gurus out there that would have a pointer on where to look to fix this?

Cheers!
Tiang

Reply via email to