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

前端 未结 16 1290
逝去的感伤
逝去的感伤 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:00

    I had this problem after changing the Application's Default namespace in the Properties dialog.

    The ./Views/Web.Config contained a reference to the old namespace

提交回复
热议问题