简体   繁体   中英

Visual Studio : The type or namespace name 'Mvc' does not exist in the namespace 'System.Web'

As said in the title, I got this message in the errors list, I've tried to réinstall the MVC package from nuget, it didn't work, I searched on google, and tried other solutions ...

What I have tried :

  • reinstall MVC from nuget package manager
  • re-create a new project
  • clean and rebuild
  • I checked the reference path from System.web.mvc, the file exists

Even on new project I have this error ...

Sorry for my bad english :(

I wish someone could finally solve my problem =(

Solved by doing this:

https://stackoverflow.com/a/26772349/3448308

It downgraded to older version and worked ...

Thanks to @Pavan Chandaka

EDIT: i had to downgrade to 5.2.0 to make it work again (it was 5.2.3 (last release))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM