Re: Windows Service and WCF Service Problem

John Warner <[email protected]> Wed, 26 Aug 2009 10:38:04 -0400
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Organization House
Message-ID <068701ca265a$d2a8a420$77f9ec60$@com>
Take a quick look at this:

http://www.codeproject.com/KB/dotnet/threadmonitor.aspx

In your situation it may make things worse but 

John Warner


> -----Original Message-----
> From: Discussion of advanced .NET topics. [mailto:ADVANCED-
> [email protected]] On Behalf Of Mike Andrews
> Sent: Wednesday, August 26, 2009 10:31 AM
> To: [email protected]
> Subject: Re: [ADVANCED-DOTNET] Windows Service and WCF Service
> Problem
> 
> I doubt it since it's not doing any UI interactions.  All ongoing
activity
> is occurring with WCF and various threads.
> Is there a way to tell if you have any threads that are locked because a
is
> waiting on b is waiting on a?
> 
> On Wed, Aug 26, 2009 at 8:43 AM, Ernst Kuschke <[email protected]>
> wrote:
> 
> > 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