aclauson

I have a class library project called AddressEntry that I have built in VB.Net for internal applications. I want to be able to call it from .Net and COM, so I have successfully created a COM visible class to do so "AddressEntry.COM". I have this functioning.

The problem comes in when I attempt to deploy the setup project. I am installing the dll to the GAC so I can use it from different programs without having to distribute it with each program. The dll is dependent on several third party dlls which I install to the application directory, but not to the GAC. When I do this, calling createobject("AddressEntry.COM") from a VB environment results in a "The System cannot find the file specified." error because the third party dlls (AddressEntry dependencies) are not installed in the GAC. I'd rather not put these dlls in the GAC, but it does work properly when I do this. Is there a way to have the dll installed in the GAC use the third party dlls in the application folder

Thanks!
Drew


Re: Common Language Runtime COM accessible .Net component in GAC - References to other assemblies

Feng Chen - MSFT

Hi aclauson,

Since this assembly is in GAC, it already has a strong name. But are the several 3rd party dlls also strong named A strong name assembly must also reference another strong name assembly, otherwise the security of strong name assemblies can be compromised.

If all the referenced assebmlies are all strong named and put into the application folder. Then you can Fuslogvw.exe to troubleshoot this issue.

For more information about Fuslogvw.exe visit the following references:

Fuslogvw.exe -- Excellent Tool (.Net FrameWork Tools Series)

Assembly Binding Log Viewer (Fuslogvw.exe)

Hope this can help!

Thanks!






Re: Common Language Runtime COM accessible .Net component in GAC - References to other assemblies

Feng Chen - MSFT

Hi aclauson,

We are marking this issue as "Answered". If you have any new findings or concerns, please feel free to unmark the issue.

Thanks!