Multimobile Development: Building Applications for any Smartphone
create a COM+ component - it was "Re: EXE COM Server Possible in C#? "
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.csharp.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

john
Nicholas,

Where do we find an example that does a EXE COm server in .net?

John,

Message 3 in thread
From: Nicholas Paldino [.NET/C# MVP] (Click here to reveal e-mail address)
Subject: Re: EXE COM Server Possible in C#?

View this article only
Newsgroups: microsoft.public.dotnet.languages.csharp
Date: 2002-07-02 07:34:37 PST

Brian,

You can not do it as a stand alone EXE. However, I find that creating
an serviced component (one that derives from ServicedComponent in the
System.EnterpriseSerivces namespace) so that I can create a COM+ component
works just as well. You can create components that are run as
out-of-process servers.

Hope this helps.

--
- Nicholas Paldino [.NET MVP]
- Click here to reveal e-mail address

"Brian Smith" <Click here to reveal e-mail address> wrote in message
news:147ab01c22187$92f02b30$39ef2ecf@TKMSFTNGXA08...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
Nicholas Paldino [.NET/C# MVP] (VIP)
John,

I would not create an EXE COM server in .NET. Rather, I would use
remoting, or I would create an object that derives from ServiedComponent,
and register it in COM+ so that it runs out-of-process. This way, you get
the application isolation that you want.

I would recommend taking a look at the section of the .NET framework
documentation titled "Writing Serviced Components", located at (watch for
line wrap):

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconwritingservicedcomponents.asp

--
- Nicholas Paldino [.NET/C# MVP]
- Click here to reveal e-mail address

"john" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
 
 
System.EnterpriseServices.ServicedComponent
System.Reflection.AssemblyKeyFileAttribute
System.Runtime.InteropServices.GuidAttribute




Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734