Re: Process.Start
From: Nick Malik (nickmalik_at_hotmail.nospam.com)
Date: 09/01/04
- Next message: Nick Malik: "Re: New concurrency error"
- Previous message: _N: "Unresolved externals when linking to unmanaged DLL"
- In reply to: DanP: "Re: Process.Start"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 01 Sep 2004 05:12:20 GMT
technet does a better job than I do.
http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/sec_acc_wpenable.asp
You need the right to execute the application. create a new application
pool, set it's identity to a domain account that has the right to run the
'pe' application, and set your web site to use this application pool (in the
IIS settings for the virtual directory).
HTH,
--- Nick
"DanP" <DanP@discussions.microsoft.com> wrote in message
news:8BAD2C83-4CFC-42A0-BDF5-BFCE95FF45BE@microsoft.com...
> Nick;
>
> Thanks for your help. I have only been programming in C# for about 8
months,
> so I'm still pretty new at it, so I'm not sure on how to set the identity.
>
> The web app is running on Windows 2003.
>
> Here is the code:
>
> using System.Diagnostics;
>
> Process ps = new Process ();
> ps.StartInfo.CreateNoWindow = false;
> ps.StartInfo .UseShellExecute = true;
> ps.StartInfo .FileName = @"\\andy\exe\cp\pe.exe";
> ps.Start();
>
> Hope this helps, Thanks....
>
>
> "Nick Malik" wrote:
>
> > You don't say if your web app is running on Windows Server 2000 or
Windows
> > Server 2003. That would be helpful information.
> >
> > Your web app is probably running under the system account, which is not
a
> > domain account... in other words, it is only allowed to run on the local
> > machine. You are trying to have code that is running in this restricted
> > context turn around and run a program on another machine. In order to
run
> > the program, it has to log in, which it cannot because the account
doesn't
> > have a name or password (you haven't specified the remoting mechanism
you
> > are using... if you'd post code, that would also help).
> >
> > Try setting the identity of the web server or web application to a
domain
> > account that has privileges on both machines.
> >
> > I hope this helps. If this isn't enough, or you need more detail,
please
> > provide code and a little configuration information.
> >
> > Thanks,
> > --- Nick
> >
> > "DanP" <DanP@discussions.microsoft.com> wrote in message
> > news:021D8097-78A7-416F-994A-8B2F4AC8706C@microsoft.com...
> > > I have intranet web app that I'm trying to execute a exe using
> > Process.Start.
> > > I get
> > > "Logon failure: unknown user name or bad password ". The exe is a
simple
> > vb6
> > > app that prints a Crystal report. My web app is on webserver and the
exe
> > is
> > > on appserver, does any know how to get past this error.
> > >
> > > Thanks in advance..
> > >
> > > --
> > > Daniel J. Plocica
> > > Technical Analysist
> > > North American Benefits Network, Inc.
> > > dplocica@nabn.com
> >
> >
> >
- Next message: Nick Malik: "Re: New concurrency error"
- Previous message: _N: "Unresolved externals when linking to unmanaged DLL"
- In reply to: DanP: "Re: Process.Start"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|