Catch and report errors from external app called using new Process

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



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
.



Relevant Pages

  • RE: Difficulty Installing SQL Reporting Services on SBS 2003 Premium
    ... Thank you for posting to the SBS Newsgroup. ... I understand that you installed SQL Reporting Services on the SBS 2K3 SP1 ... Server and Visual Studio .Net on my workstation, ...
    (microsoft.public.windows.server.sbs)
  • RE: Difficulty Installing SQL Reporting Services on SBS 2003 Premi
    ... I took your advice and posted this issue in the SQL reporting services ... > I understand that you installed SQL Reporting Services on the SBS 2K3 SP1 ... > Windows Sharepoint Services it is by default integrated in the SBS 2003. ... > you that install it back on your server. ...
    (microsoft.public.windows.server.sbs)
  • RE: Auditing users added to WSS Sites
    ... > c. SharePoint Report Pack for Microsoft SQL Server Reporting Services. ... > The SQL Reporting Services option is very new and is either yet to be ... >> Is there a way to audit when a user is added or deleted from a WSS Site? ...
    (microsoft.public.sharepoint.windowsservices)
  • Difficulty Installing SQL Reporting Services on SBS 2003 Premium
    ... I have installed the SQL Reporting Services Components on the server and the ... I have removed Sharepoint from the server as outlined in KB ...
    (microsoft.public.windows.server.sbs)
  • RE: Auditing users added to WSS Sites
    ... "Mike" wrote: ... >> c. SharePoint Report Pack for Microsoft SQL Server Reporting Services. ... >> The SQL Reporting Services option is very new and is either yet to be ...
    (microsoft.public.sharepoint.windowsservices)