Terry
Member
- Joined
- Aug 19, 2014
- Messages
- 13
- Programming Experience
- 3-5
I have the following compiler error:
Namespace or type specified in the Imports 'myNameSpace' doesn't contain any public member or cannot be found.....
There would appear to be three possible causes according to Microsoft, but I am pretty sure(ahem!) that at least two of them don't apply to my case.
The three possible causes are:
1. A containing element is not accessible.
2. The specification of an element doesnt include an Alias....
3. The containing element exposes at least one member...
I am ruling out (?) 2 and 3 because I am not using Aliases, and because the referenced assembly does include a Public Function contained within a Public Class. Therefore, I assume the root cause must be in the referencing, however, despite trying many different things I have been unable to solve the problem.
In terms of referencing, I have ensured that the Imports statement refers to the root namespace of the assembly and I have added a reference to the assembly in my main programme. As far as I understand (?) if this is done it should be possible for the main programme now to access the assembly, but is there something else I am missing? I have spent many hours trying to seek a solution without success. Alternatively can someone point me to some code snippets where I can take a simple exe application and a referenced assembly with Imports and use this as a template.
Many thanks
Namespace or type specified in the Imports 'myNameSpace' doesn't contain any public member or cannot be found.....
There would appear to be three possible causes according to Microsoft, but I am pretty sure(ahem!) that at least two of them don't apply to my case.
The three possible causes are:
1. A containing element is not accessible.
2. The specification of an element doesnt include an Alias....
3. The containing element exposes at least one member...
I am ruling out (?) 2 and 3 because I am not using Aliases, and because the referenced assembly does include a Public Function contained within a Public Class. Therefore, I assume the root cause must be in the referencing, however, despite trying many different things I have been unable to solve the problem.
In terms of referencing, I have ensured that the Imports statement refers to the root namespace of the assembly and I have added a reference to the assembly in my main programme. As far as I understand (?) if this is done it should be possible for the main programme now to access the assembly, but is there something else I am missing? I have spent many hours trying to seek a solution without success. Alternatively can someone point me to some code snippets where I can take a simple exe application and a referenced assembly with Imports and use this as a template.
Many thanks