How can I get a VB application to see my .NET component?

By alburns23 ·
I have developed a .NET component in C# and made it visible to COM. I have then developed a simple VB application that uses this .NET component on the same development machine which works fine without any problems.

However, when I then copy the .NET DLL & TLB, together with the VB app to a client machine I can't then get the VB app to work. I receive the following error: "Runtime error 430 - Class does not support automation or does not support expected interface". Both development and target client machine have v2.0 of the .NET framework on them, but only the development machine has Visual Studio.NET installed.

These are the steps I have taken on the client machine:

1). Copied the .NET DLL & TLB to the client machine and installed the DLL to the GAC using "gacutil".

2). Registered the .NET DLL using "regasm" and registered the TLB using "regsvr32".

3). Copied the VB app to the client machine & attempted to run it.

Please can someone let me know where I am going wrong as I am at my wits end with this! Many thanks.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

check your MDAC version if you have database issue

by james.xu In reply to How can I get a VB applic ...

usually this happens on the MDAC version conflict. your client's MDAC version may be different from your local PC.

Collapse -

Problem Resolved!

by alburns23 In reply to How can I get a VB applic ...

I can confirm that the problem was caused by the VB Runtime environment being out of date on the development machine. This is why the ".exe" wouldn't run on the target machine without being recompiled first.

Back to Windows Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums