简体   繁体   中英

Add Controller/View menu not shown in MVC 5 project

Recently I have faced problem in my MVC 5 project. When I right click on controller folder and select Add option from menu then Controller option is missing. Menu's were in the past, but don't know why menu is not showing now.

What could be the cause of this.

Later I found that reference added in my project for system.web.mvc.dll is for version 4.0.0. When I remove this dll and add reference of system.web.mvc.dll of verion 5.2.2.0 that solved my problem.

Now menu start appearing on right click System.Web.MVC.dll for MVC 5 can be found at the path " C:\\Program Files (x86)\\Microsoft ASP.NET\\ASP.NET Web Stack 5\\Packages\\Microsoft.AspNet.Mvc.5.2.2\\lib\\net45 "

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