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

前端 未结 16 1252
逝去的感伤
逝去的感伤 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 08:45

    If you had tried all available answers and still cannot find the answer this might solve issue. If you have different solutions configurations like Debug, Release etc then set project output path to 'bin' and compile project. Revert change after compiling.

    VS looks for dlls in bin folder

提交回复
热议问题