Groups | Blog | Home
all groups > dotnet component services > october 2004 >

dotnet component services : Can't add reference to CCW'd component


John Spiegel
10/29/2004 8:04:12 AM
I'm working through an MCAD book. All the examples for creating then using
serviced components fail when I attempt (as instructed) to add a reference
to the component in the client app. The component inherits from
ServicedComponent. It is added to the GAC and registered.

The specific error is:

"A reference to 'filename' could not be added. Converting the type library
to a .NET assembly failed. Type library filename was exported from a CLR
assembly and cn not be re-imported as a CLR assembly."

Is there something I'm missing or can someone point me to a tutorial on
serviced components (preferably in a more readable format than MS' "Here are
the simple classes. Now, click the 17 links below and follow their links to
find the related pieces you'll need to accomplish anything with these
classes.")?

Thanks,

John


John Spiegel
10/29/2004 11:14:19 AM
Thanks, Rob.

I was half way through explaining why that didn't work for me, when it hit
me...

When it's built, GAC'd and registered (as the example indicates), it shows
up under the COM tab, with nothing showing under the .NET. All the
directions indicate are to add a reference to it--I wound up forgetting
about the browse and locating the DLL (dumb). I think that may just solve
it!

Thanks again!

- John


[quoted text, click to view]

Robert Jordan
10/29/2004 4:15:17 PM
Hi John,

[quoted text, click to view]

You're trying to add a COM reference. Add a .NET reference to
that assembly.

bye
AddThis Social Bookmark Button