.NET Interoperability

G

Guest

I need to call COM component from ASP.NET. I use C#. COM component was
developed with Visual Basic 6.0. Firstly I registered this .dll with
regsvr32. Then I used imptlb to create an Assembly. Then I add the reference
for this assembly in ASP.NET project and created instance of class.
There is example my code in .NET:
NETdlCross4_92.InspectionClass insp=new NETdlCross4_92.InspectionClass();
If I try to use method of class Inspection
insp.GetID();
I get Runtime Exception:
System.Runtime.InteropServices.COMException: Item cannot be found in the
collection corresponding to the requested name or ordinal.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top