Recently, I encountered this problem several times when learning C #. When writing ArrayList and StringBuilder, the main function will report the error that “XXXXXX is a” namespace “, but it is used as a” type “here. After several times of searching for information, we finally know where the mistake is.
For the convenience of the diagram, you can name the project name directly as the class name. That’s the mistake. The priority of the namespace is higher than the class name. Just change the project name when you create a new project.
In short, avoid duplicate class and project names.
Read More:
- The Vue project is packaged and deployed to tomcat, and an Error 404 is reported as soon as it is refreshed
- It will appear as soon as it is turned on BTServer.exe -Application error (0xc0150002)
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- error CS0234: The type or namespace name ‘UI‘ does not exist in the namespace ‘UnityEngine‘
- MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.
- It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond applicat
- When a system is deployed on weblogic12.2.1.3, it reports an error “IllegalStateException zip file closed”. When it is deployed on weblogic12.2.1.2, it does not report an error and can be accessed normally.
- When C language refers to a user-defined type as a parameter, an error segmentation fault is reported
- R language error:‘ namespace:lazyeval There is no exit_ The object is eval
- Vue introduction path is correct, but it always reports an error: already included file name‘ ××ב differs from file name ‘ ××ב only in casing.
- An error is reported when installing the package directly in pycharm, but it can be installed through the terminal. Error non zero exit code (2)
- An error is reported when logging into mysql. The error message is error 1049 (42000): unknown database ‘XXXXXX’
- Solve the problem of jdk8 after win7 is installed. Has value ‘1.8’, but ‘1.7’ is required
- Solution: the process with ID XXXXXX is not currently running
- After Java application is deployed in Linux environment, Chinese is displayed as square solution
- Namespace ‘app’ is not bound
- It is invalid to submit the content directly after pasting it on the mobile terminal of Vue HTML5 editor
- After windows VM is installed successfully, it is always prompted that this application may not work properly
- When SSM + Maven project is running, it is prompted that org.springframework.web.servlet.dispatcherserservlet cannot be found
- After matlab2018a is successfully installed, a licensing error appears when it is opened: – 8523