ASP.NET MVC 5 error

I am starting to learn ASP.NET MVC and 5 while trying to debug my solution, this error appears:

CS0234: The type or namespace name 'Ajax' does not exist in the namespace 'System.Web.Mvc;

      

I'm trying to get the Mvc.Ajax link, but my MVC package has the latest update.

Error while building solution:

Line 22: using System.Web.WebPages;
Line 23: using System.Web.Mvc;
Line 24: using System.Web.Mvc.Ajax;
Line 25: using System.Web.Mvc.Html;
Line 26: using System.Web.Routing;

      

+3


source to share


2 answers


  • Go to Managing NuGet Packages
  • Try Searching "Microsoft jQuery Unobtrusive Ajax" Online
  • Install it.
  • Installing "Microsoft jQuery Unobtrusive Ajax" adds the file "~ / Scripts / jquery.unobtrusive-ajax.min.js". Then U can be found how to use Ajax.BeginForm Relations


0


source


Just open the Console Manager

Nuget Pakage Manager Tools Pakage Manager Console and Paste



Install-Package Microsoft.AspNet.Mvc -Version 5.2.3

      

 

0


source







All Articles