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

[Solved] HtmlHelpersExtensions.cs & string.Empty.Raw()

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ken
Top achievements
Rank 1
Ken asked on 16 Apr 2012, 02:01 AM

I'm trying to build HtmlHelpersExtensions.cs and am getting the following error:

Error 1 'string' does not contain a definition for 'Raw' and no extension method 'Raw' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?) c:\documents and settings\administrator\my documents\visual studio 2010\Projects\COE\COE\App_Code\HtmlHelpersExtensions.cs

I get the error five times. In searching, I've found that .Raw is not available in MVC2, but I'm using MVC3. 

System.Web.Mvc Runtime Version = v4.0.30319 / Version = 3.0.0.0

Not sure where to go from here - suggestions appreciated!

1 Answer, 1 is accepted

Sort by
0
IT Application Development
Top achievements
Rank 1
answered on 15 Jun 2012, 05:40 PM
I just ran into this. If youre still having issues, just add the StringExtensions.cs to your project. It should be in the same place where you got HtmlHelpersExtension file.
Tags
General Discussions
Asked by
Ken
Top achievements
Rank 1
Answers by
IT Application Development
Top achievements
Rank 1
Share this question
or