This is a migrated thread and some comments may be shown as answers.

[Solved] HtmlEncode Overload Error

0 Answers 52 Views
Documentation and tutorials
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sydney
Top achievements
Rank 1
Sydney asked on 25 Jan 2011, 07:16 PM
I have installed the Telerik MVC extensions and followed the instructions to add it to my project.  When I try to run the project, I get the following compilation error in Site.Master:

Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.HttpUtility.HtmlEncode(string)' has some invalid arguments

Source Error:

Line 10:         <title>Math.Solutions</title>
Line 11:     </asp:ContentPlaceHolder>
Line 12:          <%: Html.Telerik().StyleSheetRegistrar()
Line 13:         .DefaultGroup(group => group
Line 14:             .DefaultPath("~/Style")

Any ideas where to look?  I have searched my project for HtmlEncode calls, and there are none that should be turning up on the initial page.

P.S., Found that if I remove the .Render() call, there is no error, but of course, it doesn't render the style sheets
Tags
Documentation and tutorials
Asked by
Sydney
Top achievements
Rank 1
Share this question
or