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 / Interop / November 2005

Tip: Looking for answers? Try searching our database.

Implementing class 'xxx' for interface <yyy> cannot be found

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jamie_C - 04 Nov 2005 12:12 GMT
Hi - I'm trying to call our existing COM software components from a new .NET
2005 project I am writing. The COM stuff in question is a DLL written in VB6.

Adding this as a COM reference in the IDE project Properties dialog produces
an interop DLL as expected, but as my .NET assemby is "strong named" I get
the following error:
Unable to emit assembly: Referenced assembly 'Interop....' does not have a
strong name.

In accordance with the documentation I have run sn.exe to generate a keyfile
for the COM DLL, and have then run tlbimp.exe to generate a strong-named
Interop DLL :
sn -k mySnkFile.snk
tlbimp MyCOMDLL.dll /out:Interop.MyCOMDLL.dll /keyfile:mySnkFile.snk

Then in .NET IDE project Properties dialog I add a reference to the new
interop DLL.

This should now work - BUT I am getting another error to do with the class I
am trying to instantiate (MyCOMDLL.CRouter) :

Implementing class 'Interop.MyCOMDLL.CRouterClass' for interface
'Interop.MyCOMDLL.CRouter' cannot be found.

- When I look at the interop DLL in object browser, I can quite plainly see
the requested implementing class CRouterClass though.

Please help !

Signature

Jamie Clancy
Ulysses Systems, London

Jamie_C - 10 Nov 2005 11:10 GMT
Well - seeing as I've had no response whatsoever, I've raised this issue with
MS Support. I will post their findings when I get a reply.
Signature

Jamie Clancy
Ulysses Systems, London

> Hi - I'm trying to call our existing COM software components from a new .NET
> 2005 project I am writing. The COM stuff in question is a DLL written in VB6.
[quoted text clipped - 24 lines]
>
> Please help !

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.