Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello.
I have a dll in C# built in VS2015 MS in Windows 7 that sends email using the SendGrid C# library. During development I had a reference in Access vba to the bin folder created by VS2015. It works as required. Next, I built an installer with VB2015, installed it in the same development computer, and changed the Access vba reference to the .tlb file in the installed directory. The Access application in the development computer continues working as required.

Now, in the production computer SO Windows 8 the installer runs with no problems and the reference to the .tlb in Access vba compiles. However when the functions depending on the dll are called, Access vba shows an error 429 ActiveX Object can't be created.

What I have tried:

In the production computer I was trying to register manually the dll using RegAsm.exe but it display an error saying the assembly or one of its dependencies were not found, with no more detail.
Dependencies are in the installer, as I can see them in the installation folder of the production computer and they are the same ones used in the development computer.

What other thing to do or check?
Posted
Updated 9-Nov-17 7:45am

1 solution

The key here is in the error message: "the assembly or one of its dependencies were not found".

If you're using a 3rd party library .DLL in your .DLL code, you have to ship that 3rd party library with your .DLL in your installer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900