The name 'ViewBag' does not exist in the current context

前端 未结 16 1292
逝去的感伤
逝去的感伤 2020-11-28 08:24

I am trying to use ViewBag in my application, I have all of the recent dlls, the latest version of MVC 3, but yet I am still getting the Error:

\"The

16条回答
  •  醉酒成梦
    2020-11-28 09:11

    After trying all approaches, none of them worked for me since all I have was correct configurations. finally

    Deleting all files from "temp" and "%temp%" from system helped to resolve this issue.

    Open Run command(Windows+R) and type above strings and delete all temporary files.

提交回复
热议问题