Hi there,
I got a legacy VB6 COM+ component called MyAppServer.dll. It is listed
under Component Services | COM+ Applications. I have no trouble to use VB6
client to instantiate its objects.
However, when I useVB.NET client to do it, I got:
"Implementing class 'MyAppServer.myClass cannot be found" error.
I believe the problem is related to COM+ Services Type Library. The VB6
COM+ component implements COM+ Services and COM+ Services is listed as a
reference under the VB6's Project | Reference window.
The following is what I did on VB.NET:
1. Created a strong name called MyAppServerPair.snk.
2. Run TLBImp to create a RCW: tlbimp.exe MyAppServer.dll
/keyfile:MyAppServerPair.snk /out: MyAppServerInterOp.dll
3. Add Reference MyAppServerInterOp.dll to VB.NET client application.
4. Instantiate MyAppServerInterOp object with the following code.
Private m_objMyClass As MyAppServerInterOp.myClass
.
m_objMyClass = New MyAppServerInterOp.myClass
Got "Implementing class 'MyAppServer.myClass cannot be found" error.
on
New MyAppServerInterOp.myClass.
Any idea? I search the newsgroup and found someone has already posted a
similar question but I was unable to find it's response or solution.
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=COM%2B+Services+Ty
pe+Library+tlbimp+Implementing+class+cannot+be+found
Thanks a lot.
Abel
Jos? Miguel Torres - 23 Apr 2004 11:43 GMT
In the point 3, you must reference .tlb file not .dll...
> Hi there,
>
[quoted text clipped - 35 lines]
> Any idea? I search the newsgroup and found someone has already posted a
> similar question but I was unable to find it's response or solution.
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=COM%2B+Service
s+Type+Library+tlbimp+Implementing+class+cannot+be+found
> Thanks a lot.
>
> Abel