HighTechTalks DotNet Forums  

C# windows service freezes on System.Diagnostics.Process.Start(info)

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss C# windows service freezes on System.Diagnostics.Process.Start(info) in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Daniel
 
Posts: n/a

Default C# windows service freezes on System.Diagnostics.Process.Start(info) - 05-31-2006 , 04:46 PM






C# windows service freezes on System.Diagnostics.Process.Start(info)

When I launch PSCP from a C# windows service and launch pscp 0.53 there are
no issues. but when I use C# windows service to launch pscp 0.58 C# freezes
in System.Diagnostics.Process.Start(info)? pscp 0.58 works fine at command
line, but causes C# to freeze on ystem.Diagnostics.Process.Start(info) also
i noticed that the pscp process does not show in taske manager while
ystem.Diagnostics.Process.Start(info) is hanging. Reguardless of the
implementation of PSCP, how can ystem.Diagnostics.Process.Start(info) ever
freeze while the target exe is not loaded in task manager?



Reply With Quote
  #2  
Old   
William Sullivan
 
Posts: n/a

Default RE: C# windows service freezes on System.Diagnostics.Process.Start(inf - 07-06-2006 , 03:37 PM






Try running pscp asynchronously. If you need to block the current thread
until it is completed, you might find that version 0.58 may not work for you,
if it's freezing when running from Process.Start. If I were to guess, I'd
think that pscp is trying to do something that requires specific security
rights, and when it fails (due to the user account your service is running
under) its not handling the failure gracefully; it just locks up. You can
also try to use Sysinternal's regmon and filemon to see what registry
keys/files pscp is attempting to manipulate when it starts up. That might
give you a hint as to why it's failing.

"Daniel" wrote:

Quote:
C# windows service freezes on System.Diagnostics.Process.Start(info)

When I launch PSCP from a C# windows service and launch pscp 0.53 there are
no issues. but when I use C# windows service to launch pscp 0.58 C# freezes
in System.Diagnostics.Process.Start(info)? pscp 0.58 works fine at command
line, but causes C# to freeze on ystem.Diagnostics.Process.Start(info) also
i noticed that the pscp process does not show in taske manager while
ystem.Diagnostics.Process.Start(info) is hanging. Reguardless of the
implementation of PSCP, how can ystem.Diagnostics.Process.Start(info) ever
freeze while the target exe is not loaded in task manager?




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.