Solved

Process hung - State: Wait:WrLpcReply

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

760 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

21 Experts available now in Live!

Get 1:1 Help Now