Re: Windows Service and WCF Service Problem

Mike Andrews <[email protected]> Wed, 26 Aug 2009 09:31:01 -0500
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
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