?? Somebody knows this Process.Start error???

  • Thread starter Thread starter Slava
  • Start date Start date
S

Slava

WebForm button's action code (Works fine as Windows App):

Dim p As New System.Diagnostics.Process
p.StartInfo.Verb = "print"
p.StartInfo.FileName = "msPaint.exe" // any other software
p.StartInfo.UseShellExecute = True
p.StartInfo.CreateNoWindow = True
p.Start()

Raised Abnormal program termination error.

Nothing helps :( calc.exe, regedit.exe, notepad.exe,
msWord - starts fine. msPaint, AdobeReader,
WordPad.exe, .. crashed with the Subject message. What is
the reason???? Many developers are using this code and
nobody seems to be have problem like that - google found
nothing...

Thank you,
Slava Ilyin,
Arcadia
...


..
 
When you use that class from a Web application, your app
is running under another user (e.g. IUSR_machinename)
rather than your login name.

It is very likely that IUSR_machinename does not have
access to the programs that you are trying to run.

You could give this user access to those programs, BUT
BEFORE you do that, you need to be aware that those
program will be run on the SERVER. They will no be run on
the client machine. I suspect that is not what you want.
 
I have tried to set Administrator rights both to the
IUSR_machinename and ASPNET, set my custom Administrator
account in the Framework\Config\machine.config instead of
ASPNET, etc etc etc, nothing helps - calc.exe, word,
notepad, ... -fine, wordpad, adobereader - Abnormal
Program Termination. Interesting that all works fine on
Web Matrix web server, so it looks like IIS 5 feature. And
Yes, I wanted to start applications on server (export
documents from one format to another). But no problem, I
will try to use Common library for this - ASP.NET Web
Service actually is not a best way for this, I know:)

Thanks
 
Why oh why do people try to start Interactive programs from asp.net (or asp), these application run
- server side,
- in a very restricted security context,
- started by a process without a visible desktop.

Willy.
 
Back
Top