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 / July 2006

Tip: Looking for answers? Try searching our database.

Calling Singleton COM Local-Server from Managed Windows Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fadishawish@gmail.com - 06 Jul 2006 18:00 GMT
I have a interesting problem and thought this would the right forum for
it.

Background:
We have created a series of new generation middleware components using
.NET/C#.  These components are managed DLLs hosted in a WIndows
Services and .NET Remoting is used for alll client comm. to these
components.  As documented in several books, using Windows Service as
host provides us with the equivalent "emulation" of a classic COM
Singleton local Server.

Now, these remoted managed singleton components connect to a classic
COM singleton server for all their data tracing needs (using COM
interop).  This works fine.  The nature of the singleton tracer server
is to provide our system with a single point for all data tracing.  So
client applications as well as other COM Componenets are free to
connect and use this tracer server.  This is all fine also.

Scenario:
Client application (managed OR unmanaged) connected to Classic COM
components as well as Remoted Managed .NET Components.  All of the
above may connect to the classic COM Tracer Server.

Problem:
The COM Libs/Runtime seems to create TWO instances of the *Singleton*
tracer Server!  one instance is shared by ALL connections made from
Windows Serivces while the other instance is shared by ALL coinnections
NOT made from Windows Services! (remember, Windows Service is only used
to host a managed DLL)

Tried:
Running the Windows Services as LocalSystem or LocalUser, but with the
same results...

Thanks for reading this far and please let me know if you need more
detail...

Regards,

Fadi
TDC - 07 Jul 2006 13:18 GMT
Do your .NET clients that are NOT loaded in a Windows Service correctly
connect to the desired singlton instance?

> I have a interesting problem and thought this would the right forum for
> it.
[quoted text clipped - 36 lines]
>
> Fadi
fadishawish@gmail.com - 07 Jul 2006 14:24 GMT
Thanks for the reply.

I beleive that the .NET clients connect to the right tracer instance
while the Service hosted components connect to the other instance.
However, now that you mention it, I'll need to reverify...

> Do your .NET clients that are NOT loaded in a Windows Service correctly
> connect to the desired singlton instance?
[quoted text clipped - 39 lines]
> >
> > Fadi

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.