Catch and report errors from external app called using new Process
- From: "Greg Allan" <GregAllan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Jun 2005 11:43:05 -0700
Hello, I'm creating a little app in C# to help with deploying reports using
rs.exe from the SQL Reporting Services.
I create a new Process() with a Try and Catch but I would like to get the
errors returned by rs.exe as well as the new process I create in C#.
If I run this and intentionally leave out any parameters for rs.exe, the
whole process runs in a blink of an eye with no warnings or errors but of
course nothing has been deployed.
My code:
p = new Process();
p.StartInfo.FileName = "rs.exe";
p.StartInfo.Arguments = "";//"rs -i PublishReports.rss -s
http://localhost/reportserver";
try
{
p.Start();
}
catch(Exception ex) {MessageBox.Show(ex.Message);}
My post in Reporting Services did not get any responses so I thought I'd try
here.
Thanks in advance,
Greg Allan
.
- Follow-Ups:
- Re: Catch and report errors from external app called using new Process
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Catch and report errors from external app called using new Process
- Prev by Date: Re: Do I need to call MemoryStream.Close ?
- Next by Date: Re: Please Explain where will the struct be stored if it is declared inside the Class
- Previous by thread: SNMP & vs-2005
- Next by thread: Re: Catch and report errors from external app called using new Process
- Index(es):
Relevant Pages
|