Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / November 2005

Tip: Looking for answers? Try searching our database.

How to create an out of proc server using C#?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MarlonB - 02 Nov 2005 20:28 GMT
I would like to create a singleton out of proc server using C# to be called
by a legacy COM client.  I don't want to use NT service.  Has anybody done
this.  All the example I've seen are all either InProc or NT service.
Marc Scheuner [MVP ADSI] - 03 Nov 2005 07:30 GMT
>I would like to create a singleton out of proc server using C# to be called
>by a legacy COM client.  I don't want to use NT service.  Has anybody done
>this.  All the example I've seen are all either InProc or NT service.

You can't do out-of-proc / EXE servers in C# or VB.NET.

Marc

================================================================
Marc Scheuner                        May The Source Be With You!
Berne, Switzerland                      m.scheuner -at- inova.ch
Ole Nielsby - 03 Nov 2005 10:32 GMT
> You can't do out-of-proc / EXE servers in C# or VB.NET.

Doing an out-of-proc server is basically a matter of writing an
EXE that calls the Win32 CoRegisterClassObject with an
IClassFactory. This must surely be possible even if there is
no wizard.

If all else fails, maybe you could create a C# in-proc server
using an interim ClsID/ProgID and a tiny Win32 out-of-proc
server that simply calls
 CoRegisterClassObject(CoGetClassObject(InterimCLSID))

HTH/ON
Willy Denoyette [MVP] - 06 Nov 2005 00:15 GMT
The prefered way to create COM out-of-proc servers using any of the managed
languages is by registering your components with the COM+ catalog as a
server type application.

Willy.

>I would like to create a singleton out of proc server using C# to be called
> by a legacy COM client.  I don't want to use NT service.  Has anybody done
> this.  All the example I've seen are all either InProc or NT service.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.