?
Solved

Using .NET .tlb file in VB6 activeX dll

Posted on 2011-09-28
3
Medium Priority
?
1,138 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…
Suggested Courses

649 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