The type or namespace name "XXXX" cannot be found (is the using instruction or assembly reference missing ?), Xxxxusing
[C # error] the type or namespace name "" is not found (is the using instruction or assembly reference missing ?)
1 symptom: No type or namespace name "" is found during project compilation (is the using instruction or assembly reference missing ?)
Solution:
1. If the type is not found, check whether the namespace of the type is referenced and use the using command.
If the namespace is not found, check whether the Assembly is referenced. If you confirm that the Assembly is referenced, check whether the Assembly version and project are consistent. For example, your project is. net 4.0, and your assembly is.. net 3.5, or your referenced project and referenced project. the. NET framework version is different. For example. NET 4.0, the other is.. NET 4.0 Client Profile.
2. the namespace of the class in the App_Code folder in the project prompts that the type or namespace name "XXXX" cannot be found when using XXXX is added to the page (is the using command or assembly reference missing ?) The generating operation attribute of the class file to be referenced is not selected for compilation, and vs does not recognize this namespace.
Modify: Right-click the class file-> properties-> Generate operation-> change "content" to "compile", and then generate the file again to solve the problem.
3. In another case, multiple class libraries exist in the project. when a project is generated, the system prompts that the type or namespace name "XXXX" is not found (is the using instruction or assembly reference missing ?) Find the "Reference" folder in the corresponding class library, add the corresponding dll file in it, and generate such a library separately. If the prompt is still displayed, check whether the dll files generated by referencing other class libraries exist. If yes, make sure that the class libraries that generate the dll files can be generated normally, and so on, finally, the entire project is generated.