Recently, I got this issue while working on the view (Razor), I was not able to see the references of model and Html helper in the view, Example below
I followed a few blogs and post https://stackoverflow.com/questions/24147846/system-web-webpages-html-htmlhelper-does-not-contain-a-definition-for-sitecor and https://sitecore.stackexchange.com/questions/520/c-mvc-razor-view-htmlhelper-does-not-contain-a-definition-for-sitecore
and copied the web. config file from the vanilla system and it resolved the issue.
Please make sure to copy the web. config from the Vanila view folder not from the root folder .
Path for the reference -
No comments:
Post a Comment