HighTechTalks DotNet Forums  

process.start() program hangs

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss process.start() program hangs in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Alexander Widera
 
Posts: n/a

Default process.start() program hangs - 05-22-2006 , 02:08 PM






hello,

if i start a program (an exe-file) with Process.Start(...) I don't have the
required permissions that the programm needs (i could start the programm but
the program needs special rights). So I added the StartInfo.UserName and
Password to the Process. Now the program starts, but it hangs... nothing
happens. In the task-manager the process is created, but it doesn't do
anything - no cpu-load and no change of memory-usage.

What could be the problem? Why hangs the programm? I've tried also an other
programm e.g. "notepad.exe" .. this also "hangs".

here is my code:
p.StartInfo.FileName = @"c:\myprog.exe";
p.StartInfo.Arguments = "myArguments";
p.StartInfo.UserName = @"Administrator";
System.Security.SecureString ss = new System.Security.SecureString();
ss.AppendChar('M');
ss.AppendChar('Y');
ss.AppendChar('P');
ss.AppendChar('W');
p.StartInfo.Password = ss;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();

thanks in advance,

alex



Reply With Quote
  #2  
Old   
bruce barker \(sqlwork.com\)
 
Posts: n/a

Default Re: process.start() program hangs - 05-22-2006 , 03:43 PM






most likely the exe uses a window, and just hangs if it can not create one
(say notepad.exe). you can only run console apps from asp.net.

-- bruce (sqlwork.com)


"Alexander Widera"
<awid (AT) hrz (DOT) tu-chemnitz.de-novaliddomainpleasedeletethispart.de> wrote in
message news:uy$hFrcfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
hello,

if i start a program (an exe-file) with Process.Start(...) I don't have
the required permissions that the programm needs (i could start the
programm but the program needs special rights). So I added the
StartInfo.UserName and Password to the Process. Now the program starts,
but it hangs... nothing happens. In the task-manager the process is
created, but it doesn't do anything - no cpu-load and no change of
memory-usage.

What could be the problem? Why hangs the programm? I've tried also an
other programm e.g. "notepad.exe" .. this also "hangs".

here is my code:
p.StartInfo.FileName = @"c:\myprog.exe";
p.StartInfo.Arguments = "myArguments";
p.StartInfo.UserName = @"Administrator";
System.Security.SecureString ss = new System.Security.SecureString();
ss.AppendChar('M');
ss.AppendChar('Y');
ss.AppendChar('P');
ss.AppendChar('W');
p.StartInfo.Password = ss;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();

thanks in advance,

alex




Reply With Quote
  #3  
Old   
Alexander Widera
 
Posts: n/a

Default Re: process.start() program hangs - 05-22-2006 , 05:12 PM



it is a console application.



"bruce barker (sqlwork.com)" <b_r_u_c_e_removeunderscores (AT) sqlwork (DOT) com>
schrieb im Newsbeitrag news:Or1WCgdfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
most likely the exe uses a window, and just hangs if it can not create one
(say notepad.exe). you can only run console apps from asp.net.

-- bruce (sqlwork.com)


"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> wrote in
message news:uy$hFrcfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
hello,

if i start a program (an exe-file) with Process.Start(...) I don't have
the required permissions that the programm needs (i could start the
programm but the program needs special rights). So I added the
StartInfo.UserName and Password to the Process. Now the program starts,
but it hangs... nothing happens. In the task-manager the process is
created, but it doesn't do anything - no cpu-load and no change of
memory-usage.

What could be the problem? Why hangs the programm? I've tried also an
other programm e.g. "notepad.exe" .. this also "hangs".

here is my code:
p.StartInfo.FileName = @"c:\myprog.exe";
p.StartInfo.Arguments = "myArguments";
p.StartInfo.UserName = @"Administrator";
System.Security.SecureString ss = new System.Security.SecureString();
ss.AppendChar('M');
ss.AppendChar('Y');
ss.AppendChar('P');
ss.AppendChar('W');
p.StartInfo.Password = ss;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();

thanks in advance,

alex






Reply With Quote
  #4  
Old   
Alexander Widera
 
Posts: n/a

Default Re: process.start() program hangs - 05-29-2006 , 01:40 AM



I need still help!


"Alexander Widera"
<awid (AT) hrz (DOT) tu-chemnitz.de-novaliddomainpleasedeletethispart.de> schrieb im
Newsbeitrag news:eI1lGSefGHA.5096 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Quote:
it is a console application.



"bruce barker (sqlwork.com)" <b_r_u_c_e_removeunderscores (AT) sqlwork (DOT) com
schrieb im Newsbeitrag news:Or1WCgdfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
most likely the exe uses a window, and just hangs if it can not create
one (say notepad.exe). you can only run console apps from asp.net.

-- bruce (sqlwork.com)


"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> wrote in
message news:uy$hFrcfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
hello,

if i start a program (an exe-file) with Process.Start(...) I don't have
the required permissions that the programm needs (i could start the
programm but the program needs special rights). So I added the
StartInfo.UserName and Password to the Process. Now the program starts,
but it hangs... nothing happens. In the task-manager the process is
created, but it doesn't do anything - no cpu-load and no change of
memory-usage.

What could be the problem? Why hangs the programm? I've tried also an
other programm e.g. "notepad.exe" .. this also "hangs".

here is my code:
p.StartInfo.FileName = @"c:\myprog.exe";
p.StartInfo.Arguments = "myArguments";
p.StartInfo.UserName = @"Administrator";
System.Security.SecureString ss = new System.Security.SecureString();
ss.AppendChar('M');
ss.AppendChar('Y');
ss.AppendChar('P');
ss.AppendChar('W');
p.StartInfo.Password = ss;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();

thanks in advance,

alex








Reply With Quote
  #5  
Old   
Alvin Bruney
 
Posts: n/a

Default Re: process.start() program hangs - 05-29-2006 , 09:00 AM



What does this process do? Can you run it manually? does it require user
input? Have you followed the suggestions listed provided?

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"Alexander Widera"
<awid (AT) hrz (DOT) tu-chemnitz.de-novaliddomainpleasedeletethispart.de> wrote in
message news:%23BuUwJugGHA.4708 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Quote:
I need still help!


"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> schrieb im
Newsbeitrag news:eI1lGSefGHA.5096 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
it is a console application.



"bruce barker (sqlwork.com)" <b_r_u_c_e_removeunderscores (AT) sqlwork (DOT) com
schrieb im Newsbeitrag news:Or1WCgdfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
most likely the exe uses a window, and just hangs if it can not create
one (say notepad.exe). you can only run console apps from asp.net.

-- bruce (sqlwork.com)


"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> wrote in
message news:uy$hFrcfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
hello,

if i start a program (an exe-file) with Process.Start(...) I don't have
the required permissions that the programm needs (i could start the
programm but the program needs special rights). So I added the
StartInfo.UserName and Password to the Process. Now the program starts,
but it hangs... nothing happens. In the task-manager the process is
created, but it doesn't do anything - no cpu-load and no change of
memory-usage.

What could be the problem? Why hangs the programm? I've tried also an
other programm e.g. "notepad.exe" .. this also "hangs".

here is my code:
p.StartInfo.FileName = @"c:\myprog.exe";
p.StartInfo.Arguments = "myArguments";
p.StartInfo.UserName = @"Administrator";
System.Security.SecureString ss = new System.Security.SecureString();
ss.AppendChar('M');
ss.AppendChar('Y');
ss.AppendChar('P');
ss.AppendChar('W');
p.StartInfo.Password = ss;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();

thanks in advance,

alex










Reply With Quote
  #6  
Old   
Alexander Widera
 
Posts: n/a

Default Re: process.start() program hangs - 05-30-2006 , 12:59 PM



hi,
the application i want to start is "svn.exe" (Subversion - perhaps you know)
.... If I run it without setting a username and password it starts, but then
it hasn't enough rights to fullfill its task and it gives an error message.
and when i start it with an username and passoword it "hangs". It does
nothing... no error message .. nothing ... it simply hangs and is in the
taskmanger visible. .. with constant ram-usage and no cpu-activity.

what could that be?

alex



"Alvin Bruney" <www.lulu.com/owc> schrieb im Newsbeitrag
news:OV6Bz$xgGHA.1520 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Quote:
What does this process do? Can you run it manually? does it require user
input? Have you followed the suggestions listed provided?

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> wrote in
message news:%23BuUwJugGHA.4708 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
I need still help!


"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> schrieb im
Newsbeitrag news:eI1lGSefGHA.5096 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
it is a console application.



"bruce barker (sqlwork.com)" <b_r_u_c_e_removeunderscores (AT) sqlwork (DOT) com
schrieb im Newsbeitrag news:Or1WCgdfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
most likely the exe uses a window, and just hangs if it can not create
one (say notepad.exe). you can only run console apps from asp.net.

-- bruce (sqlwork.com)


"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> wrote in
message news:uy$hFrcfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
hello,

if i start a program (an exe-file) with Process.Start(...) I don't
have the required permissions that the programm needs (i could start
the programm but the program needs special rights). So I added the
StartInfo.UserName and Password to the Process. Now the program
starts, but it hangs... nothing happens. In the task-manager the
process is created, but it doesn't do anything - no cpu-load and no
change of memory-usage.

What could be the problem? Why hangs the programm? I've tried also an
other programm e.g. "notepad.exe" .. this also "hangs".

here is my code:
p.StartInfo.FileName = @"c:\myprog.exe";
p.StartInfo.Arguments = "myArguments";
p.StartInfo.UserName = @"Administrator";
System.Security.SecureString ss = new System.Security.SecureString();
ss.AppendChar('M');
ss.AppendChar('Y');
ss.AppendChar('P');
ss.AppendChar('W');
p.StartInfo.Password = ss;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();

thanks in advance,

alex












Reply With Quote
  #7  
Old   
Alexander Widera
 
Posts: n/a

Default Re: process.start() program hangs - 05-31-2006 , 06:00 PM



no ideas?

how do you start an application with other userrights? perhaps i missed
something.

alex



"Alexander Widera"
<awid (AT) hrz (DOT) tu-chemnitz.de-novaliddomainpleasedeletethispart.de> schrieb im
Newsbeitrag news:OZPP8pAhGHA.4776 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
hi,
the application i want to start is "svn.exe" (Subversion - perhaps you
know) ... If I run it without setting a username and password it starts,
but then it hasn't enough rights to fullfill its task and it gives an
error message.
and when i start it with an username and passoword it "hangs". It does
nothing... no error message .. nothing ... it simply hangs and is in the
taskmanger visible. .. with constant ram-usage and no cpu-activity.

what could that be?

alex



"Alvin Bruney" <www.lulu.com/owc> schrieb im Newsbeitrag
news:OV6Bz$xgGHA.1520 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
What does this process do? Can you run it manually? does it require user
input? Have you followed the suggestions listed provided?

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> wrote in
message news:%23BuUwJugGHA.4708 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
I need still help!


"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> schrieb
im Newsbeitrag news:eI1lGSefGHA.5096 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
it is a console application.



"bruce barker (sqlwork.com)" <b_r_u_c_e_removeunderscores (AT) sqlwork (DOT) com
schrieb im Newsbeitrag news:Or1WCgdfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
most likely the exe uses a window, and just hangs if it can not create
one (say notepad.exe). you can only run console apps from asp.net.

-- bruce (sqlwork.com)


"Alexander Widera"
awid (AT) hrz (DOT) tu-chemnitz.de-n...etethispart.de> wrote
in message news:uy$hFrcfGHA.2188 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
hello,

if i start a program (an exe-file) with Process.Start(...) I don't
have the required permissions that the programm needs (i could start
the programm but the program needs special rights). So I added the
StartInfo.UserName and Password to the Process. Now the program
starts, but it hangs... nothing happens. In the task-manager the
process is created, but it doesn't do anything - no cpu-load and no
change of memory-usage.

What could be the problem? Why hangs the programm? I've tried also an
other programm e.g. "notepad.exe" .. this also "hangs".

here is my code:
p.StartInfo.FileName = @"c:\myprog.exe";
p.StartInfo.Arguments = "myArguments";
p.StartInfo.UserName = @"Administrator";
System.Security.SecureString ss = new System.Security.SecureString();
ss.AppendChar('M');
ss.AppendChar('Y');
ss.AppendChar('P');
ss.AppendChar('W');
p.StartInfo.Password = ss;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();

thanks in advance,

alex














Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.