Solved

Process hung - State: Wait:WrLpcReply

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Connection String through a VPN 8 55
Where is this file? 3 26
Groupbox Control ? 2 19
Why use this lambda? 12 39
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 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