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.
 
Back
Top