473,480 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error adding a reference to a developed serviced component

I am working through tutorials covering developing serviced components. It
is appears as though they register correctly using regsvcs and do appear in
the MMC snap in. However when I attempt to use them from a project it fails
to add the reference with the messange:

A reference to xxx could not be added. Converting the type library to a
..NET assembly failed. Type library xxx was exported from CLR assembly and
cannot be reimported as a CLR assembly

I have seen this kind of error on other threads but never the explanation to
account for what is going wrong. I am sure it is a simple problem to resolve
- they all are when you know the resolution! Would someone kindly indicate
what I am doing wrong

TIA

--
Thanks
Nov 16 '05 #1
2 4245
Hi John:

Does the following KB offer any insight?

PRB: Error Message When You Add a COM Component: Converting the Type
Library to a .NET Assembly Failed
http://support.microsoft.com/?kbid=316142

--
Scott
http://www.OdeToCode.com

On Mon, 9 Aug 2004 06:21:02 -0700, "John McDonald"
<Jo**********@discussions.microsoft.com> wrote:
I am working through tutorials covering developing serviced components. It
is appears as though they register correctly using regsvcs and do appear in
the MMC snap in. However when I attempt to use them from a project it fails
to add the reference with the messange:

A reference to xxx could not be added. Converting the type library to a
.NET assembly failed. Type library xxx was exported from CLR assembly and
cannot be reimported as a CLR assembly

I have seen this kind of error on other threads but never the explanation to
account for what is going wrong. I am sure it is a simple problem to resolve
- they all are when you know the resolution! Would someone kindly indicate
what I am doing wrong

TIA


Nov 16 '05 #2
John,

You should not add a reference in COM to this component. Rather, you
should add a reference to the .NET assembly, and then use that. The CLR
will handle hooking up to the COM+ subsystem (which it knows it should do
since your class derives from ServicedComponent) transparently.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"John McDonald" <Jo**********@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
I am working through tutorials covering developing serviced components. It is appears as though they register correctly using regsvcs and do appear in the MMC snap in. However when I attempt to use them from a project it fails to add the reference with the messange:

A reference to xxx could not be added. Converting the type library to a
.NET assembly failed. Type library xxx was exported from CLR assembly and
cannot be reimported as a CLR assembly

I have seen this kind of error on other threads but never the explanation to account for what is going wrong. I am sure it is a simple problem to resolve - they all are when you know the resolution! Would someone kindly indicate what I am doing wrong

TIA

--
Thanks

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1533
by: Lowell | last post by:
Any tips for trouble shooting errors when the ASPX page won't even compile? What happens is that VS will "build" the code-behind object and the component that it instantiates, but when I navigate to...
9
2068
by: Stan | last post by:
Here is my scenario: Web server ------------ Framework 1.1 Application proxy for the serviced component Component server ------------------- Framework 1.0
2
1316
by: Ansari | last post by:
hi all, I want to use serviced component in ASP.NET any walkthrough or link to a resource. I have tried a lot but serviced component could be initialized in ASP.NET page. However I can...
0
1216
by: Mihiri | last post by:
Hi, I have created sample .Net Serviced Component and registered it with com+ services as a server application. (windows 2000). In my client application(vb.net) , Com+ objects are disposed...
4
1922
by: Pete Wittig | last post by:
Hello, I am creating an app using Serviced Components and I am exposing them using the Enterprise Services SOAP service. Here is my problem: I have one COM+ application with several serviced...
4
2922
by: Praveen Chandra | last post by:
Hi, I just wanted to put down the issue with more detailed information so that you can help us get to the right Microsoft resource for a solution! Here is the problem description... Our...
0
1310
by: =?Utf-8?B?QkY=?= | last post by:
I am trying to work on Serviced Component in .NET 2.0 environment. I don't see much information about serviced component in .NET 2.0 environment. I worked on serviced component 2 years ago with...
2
4651
by: =?Utf-8?B?QkY=?= | last post by:
I am currently working on moving our business objects into COM+ serviced components. But in the process, there are too many changes such ComVisible and serviced component does not support...
4
8944
by: =?Utf-8?B?Z3JlZw==?= | last post by:
I am trying to create an instance of a 3rd party COM component, and I'm getting an error. I've opened a ticket with this vendor as well, but I want to approach it from the C# .NET side to make...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7010
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3011
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3003
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.