Skip to main content

Why the 'Insert DevExpress MVC Extension' option can be missing in the DevExpress section of Visual Studio's main menu and in the context menu in an MVC 5 project

Error Description

This issue can occur if some packages are installed incorrectly in an MVC 5 project.

Solution

Make sure that your project contains references to the following assemblies:

  • System.Web.Helpers
  • System.Web.Mvc
  • System.Web.WebPages

If not, perform the following steps:

  1. Uninstall the Microsoft.ASPNet.Mvc and Microsoft.ASPNet.WebPages packages.

    You can use the NuGet console for this purpose:

    Uninstall-Package Microsoft.ASPNet.Mvc -Version 5.2.3  
    Uninstall-Package Microsoft.ASPNet.WebPages -Version 3.2.3  
    
  2. Install Microsoft.ASPNet.Mvc.

    Install-Package Microsoft.ASPNet.Mvc -Version 5.2.3
    
  3. Restart Visual Studio.