SYMPTOMS
When you compile your application in Visual Basic .NET, you receive the
following compiler error message:
The Namespace or type <name> for the Import <import name> cannot be found.
In Visual Studio 2005, you receive the following compiler error message:
Namespace or type specified in the Imports <import name> doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Note <name> is the name of the namespace you are trying to import, and
<import name> is the fully qualified namespace that you are using in your
Imports statement. For example, the code
Imports System.MyNamespace
might produce one of the following error messages:
The Namespace
or type 'MyNamespace' for the Import 'System.MyNamespace' cannot be found.
Namespace or type specified in the Imports System.MyNamespace doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.