When a program error prompts a lack of reference sets, it is often no problem to add them.
This is generally the case. However, there will still be special cases. The following describes the general solution and the new solution.
First, let's talk about how to solve the problem:
The error message is shown in:
Solution: the error indicates that BLL is not referenced, so we will add it. There are two steps to add a reference, one step is to add a reference in the code
(Using) Word set.
Generally, after the two parts are added, there is no problem.
Let's talk about special cases:
After the two steps are added, the system returns a message indicating that there are errors.
As shown in:
It is really difficult for me to encounter this situation.
It is necessary to explain the background before we can solve this problem. Yes, this solution is automatically generated using software based on the database table. Since the BS web interface is generated, I will manually remove the web, added the Form interface layer of C.
I tried to use the automatically generated Web interface to generate or run it. That is, I changed my BS form interface.
Solution:
Right-click interface layer properties to view the target framework, for example:
Change the target framework to. NET Framework 4, as shown in.
So there is no problem. We can open layer B or layer D attributes. Their target frameworks are. NET Framework 4.
The reason is that the target framework in a solution is consistent. Therefore, if the consistency is changed, there will be no error. This is changed to. NET Framework 4. It is possible to change the. NET Framework 4 clicent profile next time. You can change the settings as needed.