473,811 Members | 2,895 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Consuming dot net serviced component from .Net client?

I have created a .Net class that I configured to use through Component
Services (using regsvcs MTSWord.dll). The "Server" app.

I intend to use this "COM+" object in another .Net app: the "client"
app.

In visual studio, if I try to add a reference to my Com+ "Server" app,
I get the following error

"Converting the type library to a .Net assembly failed. TypeLibrary
MyLibrary was exported from a CLR assembly and can not be re-imported
as a CLR assembly."

Question 1: Any way around this?
Just in case you think I'm mad, this is what I am trying to do...
I need to use Word Automation from my ASP.Net app but I'd rather keep
anything to do with Word in another process space and that's why I was
trying to encapsulate this into a Serviced Component.

Question 2: Is there a better way to achieve the same?
Thanks
Eric
Jul 21 '05 #1
1 1395
Is the MTSWord.dll of your own making? ie is it a wrapper written in .Net
that exposes the Word.Applicatio n object?

If so, how do you add the reference in the client app, via COM or via .Net?
"Eric Mamet" <er************ *@yahoo.co.uk> wrote in message
news:11******** *************** ***@posting.goo gle.com...
I have created a .Net class that I configured to use through Component
Services (using regsvcs MTSWord.dll). The "Server" app.

I intend to use this "COM+" object in another .Net app: the "client"
app.

In visual studio, if I try to add a reference to my Com+ "Server" app,
I get the following error

"Converting the type library to a .Net assembly failed. TypeLibrary
MyLibrary was exported from a CLR assembly and can not be re-imported
as a CLR assembly."

Question 1: Any way around this?
Just in case you think I'm mad, this is what I am trying to do...
I need to use Word Automation from my ASP.Net app but I'd rather keep
anything to do with Word in another process space and that's why I was
trying to encapsulate this into a Serviced Component.

Question 2: Is there a better way to achieve the same?
Thanks
Eric

Jul 21 '05 #2

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

Similar topics

6
6219
by: william | last post by:
Could anyone tell me how to debug a Serviced Component (COM+) in .NET? I tried to attach the debugger to the host process, but failed, got error "unable to attach the process. There is no managed code running in the process. In order to attach to a process with the .NET debugger, managed code must be running in the process before attaching." Thanks
9
2086
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
0
1232
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 using Dispose method. Even though I dispose memory usage of DLLhost.exe does not decrease. Both client and serviced component are on the same machine for the moment. When I configure com+ component as a library application it works fine. When a...
1
303
by: Eric Mamet | last post by:
I have created a .Net class that I configured to use through Component Services (using regsvcs MTSWord.dll). The "Server" app. I intend to use this "COM+" object in another .Net app: the "client" app. In visual studio, if I try to add a reference to my Com+ "Server" app, I get the following error "Converting the type library to a .Net assembly failed. TypeLibrary
0
1266
by: Mark Mims | last post by:
I am having a problem with a .NET serviced component running in MTS trying to call a web service on a remote machine on our internal network. The serviced component is using a domain account for authentication. When making the same call from a windows application it works successfully, but throught the serviced component I get this error, File or assembly name 5vb_bpv7.dll, or one of its dependencies, was not found. The ddl in the error...
4
1960
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 components. When I enable the SOAP service, I can access a WSDL link to every component in the application. What I would like to do is the following: Have a class A that is exposed through the SOAP service that provides getters for instances of...
0
1332
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 .NET 1.1, which is not so easy to use. Can anybody tell me whether we have new features in .NET 2.0 to make serviced component easier to use? Thanks a lot.
2
4690
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 parameterized constructors. So I am thinking whether I should change to use .NET remoting instead. Have anybody else gone through this .NET remoting vs serviced component comparison before? Which one is better? Can .NET remoting support object pooling...
0
5361
by: bharathreddy | last post by:
In .Net COM+ components are referred to as serviced components, Namespace: System.EnterpriseServices; Advantage of Serviced Components: object pooling, database connection pooling,
0
10401
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10138
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9217
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7676
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4357
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3881
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3029
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.