Topaz Filer: if you use e-mail for business, we can save you money and decrease your risk.
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...
 
Auto-following on Twitter
Ubuntu and XP on one “desktop”
 
    
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.
Recession Busting Bespoke Software
Get through the recession by investing in bespoke software to decrease costs and create commercial opportunities.
Other DN247 Network Sites
.NET 247
SQL Server Wins
Old Skool Developer
 
Copyright © AMX Software Ltd 2008-2009. Portions copyright © Matthew Baxter-Reynolds 2001-2009. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - .NET 247 is a member of the DN247 Network - 4.0.30129.1734