Solved

Process hung - State: Wait:WrLpcReply

Posted on 2009-07-01
4
1,948 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 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