Namespace cannot be found from VB Script

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
LDAP Search 1
LDAP search 1
Embedded resource and Virtual Path 2
Namespace confusion 8
LDAP Search 1
Namespace Problem 6
newbie: how to create project with additional assembly 1

Back
Top