Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have following error while converting the CSharp dll into the interop dll.
I want to add reference of my Csharp Dll into the vb.net code.

"A Reference could not be loaded. Please make sure that the file is accessible and that it is a valid assembly or COM Component."

Thanks & Regards,
Shraddha
Posted

1 solution

I gues your CSharp.dll is refering some other assemblies which are missing from local location or in GAC.
Make sure that all the refered assemblies are available.

And by the way, hope that your dll is valid .NET/COM assembly. Try opening it in ObjectViewer or IL Disassembler to validate.
 
Share this answer
 
v2

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