Re: Diagnostics.Process class and ASP.NET
From: BCM (BCM_at_none.com)
Date: 07/13/04
- Next message: Aarti: "RE: Detecting User logon/logoff events"
- Previous message: NCrum: "Re: Binding an array to a Datagrid"
- In reply to: Kyril Magnos: "Re: Diagnostics.Process class and ASP.NET"
- Next in thread: Dies Deambulo: "Re: Diagnostics.Process class and ASP.NET"
- Reply: Dies Deambulo: "Re: Diagnostics.Process class and ASP.NET"
- Messages sorted by: [ date ] [ thread ]
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!
> >
> >
>
>
- Next message: Aarti: "RE: Detecting User logon/logoff events"
- Previous message: NCrum: "Re: Binding an array to a Datagrid"
- In reply to: Kyril Magnos: "Re: Diagnostics.Process class and ASP.NET"
- Next in thread: Dies Deambulo: "Re: Diagnostics.Process class and ASP.NET"
- Reply: Dies Deambulo: "Re: Diagnostics.Process class and ASP.NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|