i have a MVC based project who is built in MVC2 i migrate them using the tool. atleast they work fine.
but when i delete some views and make cshtml views their that i found that’s not work as they work before.
their is a problem that when i see the views in Visual studio i found that
Error 1 The name ‘ViewBag’ does not exist in the current context
Error 2 The name ‘RenderBody’ does not exist in the current context
when i debug them i found that
CS0234: The type or namespace name ‘Helpers’ does not exist in the namespace ‘System.Web’ (are you missing an assembly reference?)
how i can solve this issue in asp.net mvc3
There are members of the base razor view, which is typically specified in the web.config in the /views folder, typically with contents like:
The pageBaseType is probably what you are missing.