Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2155
  • Last Modified:

Process hung - State: Wait:WrLpcReply

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
Tom Sage
Asked:
Tom Sage
  • 2
  • 2
1 Solution
 
jinalCommented:
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
 
Tom SageAuthor Commented:
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
 
jinalCommented:
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
 
Tom SageAuthor Commented:
I have decided to move the external code into the web service.  It will take too long to debug this problem.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now