Solved

Process hung - State: Wait:WrLpcReply

Posted on 2009-07-01
4
2,041 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:Tom Sage
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Tom Sage
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:Tom Sage
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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

630 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