Compiler error Message: CS0234: The namespace "system.web" does not exist in the type or namespace name "optimization" (is the assembly reference missing?)

Source: Internet
Author: User

Attribution: Song等

Today I met a problem: Compiler error message: CS0234: The namespace "system.web" does not exist in the type or namespace name "optimization" (is the assembly reference missing?).

Let me worry for a long time, how to debug and do not know where the wrong, and later asked the senior to know where the wrong.

Cause: Modify the code of a function module, afraid of affecting the function of other function module implementation, so I created a new area, to modify the module to the relevant code to copy the past, the hint with the wavy line has been modified,

This error occurs when running.

Solution: Locate the file named "Web. config" under the pre-and post-replication view folders and overwrite the contents of the "Web.config" before the copy with the "Web. config" In the content.

Note: No picture, no case, in the text may be expressed is not very clear, please understand, I try to add and case.

Compiler error Message: CS0234: The namespace "system.web" does not exist in the type or namespace name "optimization" (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.