Is the reference set missing? New Solutions

Source: Internet
Author: User


When a program error indicates a missing reference set, it is often added with no problem.

This is generally the case. However, there will be special circumstances, the following will explain the general situation of the solution and the new solution.


First of all, the problem is solved in general:

A hint error is shown in the following illustration:




Resolution: The error shows no reference to the BLL, then we are adding chant. Add a two-step, one-step right-click to add a reference, and one step is to add it in your code

(using) Word set.

In general, after two has been added, there is no problem.


Besides, special cases:

In accordance with the above mentioned two steps, all add, regenerate or prompt error, obviously has been quoted.

As shown in the following illustration:



I'm really stuck in this situation.

Again, it is necessary to explain the background before solving this problem. So, this solution is automatically generated from the database table by the software, because after the build is the BS Web interface, I manually removed the web, adding a C # form interface layer.

I tried it. The auto-generated web interface can be generated, or it can be run, that is, I have changed a BS form interface, so this happens.


Workaround:

Right-click the interface layer properties to view the target frame as shown below:



Then change the target framework to:. NET Framework 4 as shown in the following illustration




There's no problem with that. We can open B-layer or D-tier properties, and their target framework is the. NET Framework 4

The reason is that the target framework is consistent within a solution. So it's not wrong to change the same. This time it's changed to. NET Framework 4, and it's probably next time you change the. NET Framework 4 Clicent profile. You change it flexibly, depending on the situation.


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.