Solved

Using .NET .tlb file in VB6 activeX dll

Posted on 2011-09-28
3
1,110 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 101

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

696 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