Namespace cannot be found from VB Script

G

Guest

I have created a .NET project which contains a single class object. I need
to call a public shared sub in this class from a VB script.

The project is called 'Client Script Functions'. The assembly name and root
namespace are both ClientScriptFunctions.

My script includes the line 'Imports ClientScriptFunctions'.
ClientScriptFunctions exists in the same folder as the script. But when the
script runs I get the message

"Namespace for type 'ClientScriptFunctions' for the imports
'ClientScriptFunctions' cannot be found".

I thought I might need to register the DLL. When I try to do this using
regsvr32 I get the following message

"ClientScriptFunctions.dll was loaded, but the DllRegisterServer entry
point was not found".

Can anyone see what I might be doing wrong please. I am very new at this.

Bob Waite
 
G

Guest

1. Sign your assembly.
2. Load the Assembly in the GAC

and then make the call from your VB Script and it should work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Basic namespace problem 2
Namespace confusion 8
Namespace Question 2
Cannot use basic method of VB.NET 2
Namespace syntax question 2
Namespace Problem 6
Embedded resource and Virtual Path 2
LDAP Search 1

Top