473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Namespace cannot be found from VB Script

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
Nov 22 '05 #1
1 1413
1. Sign your assembly.
2. Load the Assembly in the GAC

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

"BobUp" wrote:
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

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BobUp | last post by:
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...
8
by: Marcin Kalicinski | last post by:
Is the code below ill formed (because operator >> is defined in different namespace than class B)? It fails with VS 2005 Beta. I don't know if I should redesign my code or if I should find a...
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
7
by: Kai-Uwe Bux | last post by:
Hi folks, I observed something that puzzles me. When I do namespace xxx { using std::swap; } it appears that xxx::swap and std::swap are not strictly equivalent. In particular, I think...
4
by: BH | last post by:
Hi C# & .NET detectives, can you help with two problems I've encountered lately? 1) These seem equivalent to me but one fails and the other doesn't. This fails with "type or namespace...
29
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using...
2
by: Steve Richter | last post by:
I have a simple project that builds ok in Visual Web Developer, but which fails when I navigate to it at //localhost. The error is "namespace 'ac' could not be found". the problem page is at...
29
by: Tiraman | last post by:
Hi, I Build my own dll with my own namespace name and i would like to put it in one place but for the project bin folder so all of the projects will be able to use it . i tried to put the dll...
3
by: sjt003 | last post by:
I have been developing web apps in Visual Studio 2003, but since the other developers in my office don't use Visual Studio, I may have to stop too unless there is an efficient way for them to...
2
by: Andrus | last post by:
I'm trying to compile myGeneration PropertyCollectionAll.cs file with VCS Express 2005 bot got error Error 1 The type or namespace name 'Collection' could not be found (are you missing a using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.