Fixed: ‘System.Web.WebPages.Html.HtmlHelper’ does not contain a definition for ‘Sitecore’ and no extension method ‘Sitecore’

Posted on Updated on

 

Compiler Error Message: CS1061: ‘System.Web.WebPages.Html.HtmlHelper’ does not contain a definition for ‘Sitecore’ and no extension method ‘Sitecore’ accepting a first argument of type ‘System.Web.WebPages.Html.HtmlHelper’ could be found (are you missing a using directive or an assembly reference?)

'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'Sitecore' and no extension method 'Sitecore'

Root cause and the fix: Missing web.config inside \Views folder

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s