3

I'm starting to learn ASP.NET MVC and 5 when I try debug my solution, this error appears:

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

I try to get the reference Mvc.Ajax, but my MVC package is installed the last update.

Error to build the 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;
2
  • I don't know if this is the same problem or not, but notice what this question added to their question, and add the same: stackoverflow.com/questions/11071392/… Commented Jul 14, 2015 at 3:59
  • Clean your solution and rebuild Commented Jul 14, 2015 at 9:26

2 Answers 2

0
  1. Go to Manage NuGet Packages
  2. Try to find out "Microsoft jQuery Unobtrusive Ajax" Online
  3. Install it.
  4. Installing "Microsoft jQuery Unobtrusive Ajax", adds "~/Scripts/jquery.unobtrusive-ajax.min.js" file. Then U can Search how to use Ajax.BeginForm Regards
Sign up to request clarification or add additional context in comments.

Comments

0

Just open the console manager

Tools>Nuget Pakage Manager>Pakage Manager Console and paste

Install-Package Microsoft.AspNet.Mvc -Version 5.2.3

 

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.