473,378 Members | 1,417 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,378 software developers and data experts.

Vb.Net COM not registering...

I've created a basic COM object using the COM class template.

I'm trying to access the object via IDispatch... the easiest way to do this
is probably through CreateObject in Vbscript.

On my machine, everything compiles and registers, and I created a little
script to create and instance of my VB .Net COM object, and access a few
methods on it... No problem, it works like a treat.

If I then transfer this dll to any another machine, and use RegAsm to
register the DLL, then try to access it via my same script, it fails,
claiming the ActiveX control can't create my object...

Any ideas what I need to do to get this working, and why it works on the
development machine, but no others?

I've asked about in other relevant newsgroups to no avail.

Thanks in anticipation.
Dan.
Nov 20 '05 #1
3 1173
Com Interop files are created as Tlb files you will need to use Regtlb to
register these or any installer can register these files.
"Daniel Bass" <I'm really @ sick of spam> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
I've created a basic COM object using the COM class template.

I'm trying to access the object via IDispatch... the easiest way to do this is probably through CreateObject in Vbscript.

On my machine, everything compiles and registers, and I created a little
script to create and instance of my VB .Net COM object, and access a few
methods on it... No problem, it works like a treat.

If I then transfer this dll to any another machine, and use RegAsm to
register the DLL, then try to access it via my same script, it fails,
claiming the ActiveX control can't create my object...

Any ideas what I need to do to get this working, and why it works on the
development machine, but no others?

I've asked about in other relevant newsgroups to no avail.

Thanks in anticipation.
Dan.

Nov 20 '05 #2
when i used regasm, i had the /tlb:<tlbfile> switch, which supposedly does
this?

I can't find an application called regtlb in the .net framework.

Thanks.
Dan.

"Mike Bulava" <mb*****@comcast.net> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
Com Interop files are created as Tlb files you will need to use Regtlb to
register these or any installer can register these files.
"Daniel Bass" <I'm really @ sick of spam> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
I've created a basic COM object using the COM class template.

I'm trying to access the object via IDispatch... the easiest way to do this is probably through CreateObject in Vbscript.

On my machine, everything compiles and registers, and I created a little
script to create and instance of my VB .Net COM object, and access a few
methods on it... No problem, it works like a treat.

If I then transfer this dll to any another machine, and use RegAsm to
register the DLL, then try to access it via my same script, it fails,
claiming the ActiveX control can't create my object...

Any ideas what I need to do to get this working, and why it works on the
development machine, but no others?

I've asked about in other relevant newsgroups to no avail.

Thanks in anticipation.
Dan.


Nov 20 '05 #3
got it... you need to include the /codebase option when using RegAsm.

thanks.
Dan.

"Daniel Bass" <I'm really @ sick of spam> wrote in message
news:ub**************@TK2MSFTNGP12.phx.gbl...
when i used regasm, i had the /tlb:<tlbfile> switch, which supposedly does
this?

I can't find an application called regtlb in the .net framework.

Thanks.
Dan.

"Mike Bulava" <mb*****@comcast.net> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
Com Interop files are created as Tlb files you will need to use Regtlb to
register these or any installer can register these files.
"Daniel Bass" <I'm really @ sick of spam> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
I've created a basic COM object using the COM class template.

I'm trying to access the object via IDispatch... the easiest way to do this is probably through CreateObject in Vbscript.

On my machine, everything compiles and registers, and I created a little
script to create and instance of my VB .Net COM object, and access a few
methods on it... No problem, it works like a treat.

If I then transfer this dll to any another machine, and use RegAsm to
register the DLL, then try to access it via my same script, it fails,
claiming the ActiveX control can't create my object...

Any ideas what I need to do to get this working, and why it works on the
development machine, but no others?

I've asked about in other relevant newsgroups to no avail.

Thanks in anticipation.
Dan.



Nov 20 '05 #4

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

Similar topics

4
by: Bob | last post by:
Hi, I am having trouble registering a row from a mysql query so far I have the mysql part working : while ( $val = mysql_fetch_array( $result )) { print("<tr><td>$val</td> <td>$val</td>...
0
by: Sylwia | last post by:
Hi! I have the following problem :( After registering the "PythonService.exe" executable... C:\Python23\Lib\site-packages\win32>PythonService.exe -register I got the following error...
1
by: Kelly G. | last post by:
I need to register a Vb DLL under restricted acess privilages please provide me a solution. Here is the complete issue: I building a MSI using Vs.net ,One of the Dll's is Vb Component ( A shim...
6
by: Daniel Bass | last post by:
The scenario: ------------- I've created a simple COM object according to a tutorial I found: http://www.csharphelp.com/archives/archive281.html It automatically creates a Type Library...
6
by: ian | last post by:
Hi All I have a DLL (nahd.dll) that has been supplied to me will a PBX phone system. According to the documentation it is to allow developers to write there own applications to monitor the...
0
by: Dan Bass | last post by:
One day, out of the blue, anything COM interop related stopped building. When building any project (VB / C#) that has a COM interop interface (my own home grown projects, or a Visual Studio .Net...
2
by: glenn | last post by:
I have written a COM Server in C# and its working perfectly. I am not ready to deploy to client computers to begin the real testing and am now wondering how to perform. The part that confuses me...
13
by: noone | last post by:
consider the following problem: You have a C style library and API that uses callbacks to implement functionality. Examples of this are X11 API, OpenGL/GLUT...The List goes on. The power of...
2
by: linuxfedora | last post by:
I have written a C# program which has an activeX control (abc.ocx) in Visual Studio 2005, and used the setup and deployment project to create an setup.exe and setup.msi that act as an installer. ...
0
by: Tim Spens | last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote: I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.