Calling VB6.0 DLL from .NET gives error

Posted by Sameernavare under C# on 7/12/2013 | Points: 10 | Views : 2154 | Status : [Member] | Replies : 1
I have one COM DLL which is written in VB6.0. Now when i try to use that DLL in my .NET applicaiton. It gives me error as given below:

Error "800700002"
"Could not load file or assembly "Interop.ChilcatZip2Lib, Version=, Culture=neutral, PublicKeyToken=null" or one of its dependencies. The system cannot find the file specified.
I have added reference to this DLL in my code. Still it gives error

Please extract attached ZIP file to see the screen-shot of error.

Sameer S. Navare
Project Leader, 3i Infotech
Certified Scrum Master (CSM)


Posted by: Jitendrasoft09 on: 7/12/2013 [Member] [MVP] Starter | Points: 25


As Dot Net Supports managed code only not unmanaged. Your vb dll is a unmanaged, so you have to register vb dll, which must be compatible with Dot Net.

There is a command regsvr32 to execute with vb dll in visual studio command prompt, refer below link for more information-

Hope you are clear.

Jitendra Kumar
If my post helps you, plz mark as an answer.

Sameernavare, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response