Solved

Using .NET .tlb file in VB6 activeX dll

Posted on 2011-09-28
3
1,056 Views
Last Modified: 2012-05-12
I have a .NET dll that I want to use it in VB6 activeX dll project. I followed all the steps I found on the forums for .NET interop process. The VB6 dll successfully calls the .NET .tlb file on the dev machine but when I install the VB6 dll on the server I get "Automation Error: The system cannot find the file specified". Any ideas?
0
Comment
Question by:Bagur
3 Comments
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 500 total points
ID: 36717770
Yes. You need to give your .NET dll a strong key name. Properties >> Signing Tab >> check "Sign the assembly" box in the dropdown choose "New..." in the dialog box under "key file name:" give it a name and then un-check "protect my key file with a password" and click OK. Re-Build DLL then when you use regasm to register your .NET dll use the /codebase switch.


regasm.exe "AdministratorLib.dll" /tlb:AdministratorLib.tlb /codebase

Open in new window

0
 
LVL 100

Expert Comment

by:mlmcc
ID: 37144348
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now