Basic skills (15) -------- the dll file has been referenced, but using cannot find the namespace. -------- dllusing

Source: Internet
Author: User

Basic skills (15) -------- the dll file has been referenced, but using cannot find the namespace. -------- dllusing
I. Problems

Ii. Solution

1. the lz Code does not contain the dll of Vancl. Server.
2. The compilation problem exists. It is because the target framework of the Project Vancl. WindowsServices is set to. Net Framework 4 Client Profile and changed to. Net Framework 4 to solve most compilation problems.
3. The IServer interface in IServer. cs should be declared as public, otherwise there will be compilation problems.


After the web reference is updated, the system prompts "error 1 cannot find the type or namespace name 'documentservicewse' (whether the using command or program is missing

Find the namespace where DocumentServiceWse is located and compile it separately. After the compilation is successful, rereference it (the dll of the binfile). Then, check whether useing in the class needs to be rewritten, if the namespace is not changed, you do not need to modify it.

The type or namespace name cannot be found (whether the using command or assembly reference is missing)

First, find the class library where the class is located, then USING the name of the class library where the class is to be called, and add a reference to the class library where the class is to be called.

Related Article

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.