Solved

Process hung - State: Wait:WrLpcReply

Posted on 2009-07-01
4
1,921 Views
Last Modified: 2013-11-07
I am using .NET 2.0 with VS 2008.  I created a web service which starts a process.  The process starts, but it never finishes.  When I look at the process using Process Explorer, the State is Wait:WrLpcReply.

Below is the code I use to start the Process.

Thanks for any ideas.
Dim proc As New Process

 proc.StartInfo.Domain = "Main"

 proc.StartInfo.UserName = "tech"

proc.StartInfo.Password = New System.Security.SecureString()

For Each c As Char In "mypassword"

      proc.StartInfo.Password.AppendChar(c)

Next

proc.StartInfo.UseShellExecute = False

proc.StartInfo.CreateNoWindow = False

proc.StartInfo.Arguments = "1"

proc.StartInfo.FileName = "C:\Program Files\Merge\Merge.exe"

 

proc.Start()

Open in new window

0
Comment
Question by:MisterT25
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:jinal
ID: 24755128
Hello ,

Can you please tell me what you merge.exe do ?

it is wellknown application or develped by you . If it possible then put merge.exe code.

0
 

Author Comment

by:MisterT25
ID: 24755217
The Merge program is a .NET 2.0 program that I wrote.   It merges data from 3 csv files into a single SQL table and then exports the data back as a single csv file.

The program uses the BackGroundWorker component.  That may be the reason for this problem.

Sorry I cannot supply more information.  The Experts Exchange will not allow adding a .NET solution.
0
 
LVL 15

Accepted Solution

by:
jinal earned 500 total points
ID: 24755885
No backgroundworker  is not a issue.

Problem is how you supply command to process ?

After supplying command it should completed (means exit ) properly.

Make sure you are not using Console.Read() or Console.ReadLine() any where in the merge program.
0
 

Author Closing Comment

by:MisterT25
ID: 31598778
I have decided to move the external code into the web service.  It will take too long to debug this problem.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What .NET URL re-routing tool did I use? 2 37
Turn on intranet settings 1 41
Help with LINQ and XML 10 27
C# guarantee sql connection close 6 30
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now