Re: Diagnostics.Process class and ASP.NET

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: BCM (BCM_at_none.com)
Date: 07/13/04


Date: Tue, 13 Jul 2004 13:59:23 -0400

Thanks: I should have made it explicit that I WANT the file to open on the
server, not the client. The file itself has an embedded script that changes
field contents upon opening. Right after the .pdf has been opened and thus
changed, I want to direct the browser to it.

> Hi BCM,
>
> You have to remember that ASP.NET runs server side. Which means that when
> you do a Process.Start(), it is starting that new process on the server.
The
> client web browser (or whatever application) will never, ever see that
> process running. A console application runs on a local client, so when you
> call Process.Start(), you are starting that process locally and you can
> interact with it.
>
> If you want to launch a PDF or other file on the client machine, either
> provide them a link to the file that they should open or download or
> Response.Redirect() to the file.
>
> HTH,
>
> Kyril
>
> "BCM" <BCM@none.com> wrote in message news:40f41cca$1@news.unc.edu...
> > In a simple console app the following few lines open up an Acrobat file
> > without a hitch:
> >
> > Process p = new Process();
> > p.StartInfo.FileName = @"C:\test.pdf";
> > p.Start();
> >
> > But the same code in an ASP.NET app does NOTHING. No error message, not
> > anything at all. In fact, if I add the following line after
process.Start:
> >
> > ......
> > p.Start();
> > Response.Write(p.Responding.ToString());
> >
> > SOMETIMES it returns True, but more often I DO get an error, which
states
> > that "Process has exited, so the requested information is not
available."
> >
> > Now I've given the ASPNET user read rights on the file, but I can't
think
> > of
> > anything else that might be precluding the file from opening. Any ideas?
> > Thanks in advance!
> >
> >
>
>



Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • Re: ConnectComputer Vista to SBS 2003 fails
    ... you can follow the instructions in the error message to reinstall the ... Client Deployment Componenet on the server. ... Add the ConnectComputer server's IP address or FQDN to the Local ...
    (microsoft.public.windows.server.sbs)
  • Re: ConnectComputer Vista to SBS 2003 fails
    ... you can follow the instructions in the error message to reinstall the ... Client Deployment Componenet on the server. ... Add the ConnectComputer server's IP address or FQDN to the Local ...
    (microsoft.public.windows.server.sbs)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)