Re: Process.Start

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Nick Malik (nickmalik_at_hotmail.nospam.com)
Date: 09/01/04


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
> >
> >
> >



Relevant Pages

  • Re: Basic question on Windows Integrated Security
    ... IUSR_is not the default Web App Pool identity. ... IUSR_is used by IIS as the account to impersonate for requests ... Pool identity, and is configurable via the Application Pools node in the IIS ...
    (microsoft.public.inetserver.iis.security)
  • Re: Incoming E-Mail - cant create contact in OU
    ... central admin pool different than the web app. ... that account a little (if the web app is compromised or something, ... So I started with giving the app pool account domain admins permissions then ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Incoming E-Mail - cant create contact in OU
    ... already have the application pool delegated rights to the OU. ... In my experience it is because you didn't quite delegate enough rights to ... the account in the OU. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Incoming E-Mail - cant create contact in OU
    ... I too am worried about giving the app pool (and remember, ... local admin rights to the server hosting incoming email. ... If your app pool account is also the farm account, ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Incoming E-Mail - cant create contact in OU
    ... Go to the OU in security/advanced I added my sharepoint application pool ... that account a little (if the web app is compromised or something, ... Now I understand that you have given the account "full rights" of the OU, ... So I started with giving the app pool account domain admins permissions then ...
    (microsoft.public.sharepoint.windowsservices)