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.