Re: Windows Service and WCF Service Problem

Mike Andrews <[email protected]> Wed, 26 Aug 2009 09:27:17 -0500
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
I've got one or more wcf clients, to talk to the wcf service, based on some
configuration file settings.

Since I sent this email out I enabled wcf logging and determined that the
callback event was received by the wcf system in the windows service but the
event is not raised in the windows service code and it is hanging in the WCF
service waiting for a reply (as this is not a one-way call).  This is
extremely frustrating to say the least.

On Wed, Aug 26, 2009 at 8:45 AM, John Warner <[email protected]> wrote:

> I wonder is a service limited to a single thread ??
>
> John Warner
>
>
> > -----Original Message-----
> > From: Discussion of advanced .NET topics. [mailto:ADVANCED-
> > [email protected]] On Behalf Of Ernst Kuschke
> > Sent: Wednesday, August 26, 2009 9:44 AM
> > To: [email protected]
> > Subject: Re: [ADVANCED-DOTNET] Windows Service and WCF Service
> > Problem
> >
> > Hi,
> > I'm not sure what exactly it does, but does your Windows Service perhaps
> > need the "Allow service to interact with desktop" permission?
> > --
> > Ernst Kuschke
> > MVP - C# (South Africa)
> > http://dotnet.org.za/ernst
> >
> > On Wed, Aug 26, 2009 at 3:16 PM, Mike Andrews
> > <[email protected]>wrote:
> >
> > > I'm implementing a windows service and it contains a WCF client to
> talk to
> > > a
> > > WCF service.  The windows service provides drop-folder functionality
> for
> > > files so that the files are picked up and processed using WCF
> services.  I
> > > uses a process scheduler to allocate multiple files to multiple
> processors
> > > to handle these files.  It all works fine when I test outside the
> confines
> > > of the windows service.  However, once executed in the context of a
> > windows
> > > service it fails when the WCF service issues a callback to it's client
> > > (which in this case is the windows service) . Then it just hangs.  I'm
> able
> > > to break into the code and see that is is the callback in the WCF
> service
> > > that is hanging.  No code has been executed in the client (windows
> > > service).  It could be a permissions issue, but I changed the account
> of
> > > the
> > > windows service from LocalSystem to my user account for testing to see
> if
> > > that made a difference and it did not.  I'm administrator of the
> machine
> > > I'm
> > > executing both the WCF service and the windows service.
> > >
> > > I'm at a loss here to figure out what's going on with this.  This is
> tried
> > > and tested code (both the WCF client and WCF service) that has worked
> for
> > > months now and works outside the context of a windows service.  The
> code
> > > and
> > > examples I'm seeing online are utilizing a windows service as a WCF
> service
> > > but this is not my case.  Is there something I'm missing here to allow
> it
> > > to
> > > work?  Some setting I need that I cannot seem to find?
> > >
> > > Any help would be most appreciated.
> > >
> > > Thanks,
> > > Mike
> > >
> > > ===================================
> > > View archives and manage your subscription(s) at
> > > http://peach.ease.lsoft.com/archives
> > >
> >
> > ===================================
> > View archives and manage your subscription(s) at
> > http://peach.ease.lsoft.com/archives
>
> ===================================
> View archives and manage your subscription(s) at
> http://peach.ease.lsoft.com/archives
>

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives