Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / April 2004

Tip: Looking for answers? Try searching our database.

Unable to instantiate VB6 COM+ object from VB.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
awong - 09 Mar 2004 19:01 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.