B
BCM
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!
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!