The namespace "SYSTEM.WEB.MVC" does not exist in the type or namespace "Ajax" (is the assembly reference missing?)

Source: Internet
Author: User

Well, very excited to say that this problem has made me a night, the online posts are too few, as if not more than 2, and not very clear, and finally looked at a foreign one similar to

Forum website (called: Stack Flow), the result is still let me solve, although this point, but very excited, stay up to record this thing.

in ASP. NET MVC, you need to add a reference to the SYSTEM.WEB.MVC, but add a reference, or the problem arises, what is the cause of this problem, I guess

Because your current project is copied from another computer, want to study other people's Code, in others computer clearly run well, but to their own computer how can the problem? In fact, I also

Not very clear, presumably because these assemblies have not been copied over. Therefore, the first problem may occur when running, such as:

First of all, how to solve this situation, the solution is that you have to quote your native SYSTEM.WEB.MVC, add the reference, the new problem arises, that is, what to say today, error such as:

Obviously System.Web.Mvc.Ajax is in the System.Web.Mvc this namespace, but why still hint no reference? Cause I'm not quite sure at the moment,

Looking back at the deep research, and then modify this article, here first gives a solution: is set SYSTEM.WEB.MVC this DLL's property "Copy Local" set to true. The following two figures:

After set to true, clean up the solution (clear does not matter, I tried before is not clean, also can), and then run, the error disappears.

If it is in English, this property is copy Local = True. Well, the problem has finally been solved. Give it a good.

The namespace "SYSTEM.WEB.MVC" does not exist in the type or namespace "Ajax" (is the assembly reference missing?)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.