calling .exe from C# code on server 2003

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

gunjan
User
Posts: 2
Joined: Wed May 09, 2012 10:32 am

calling .exe from C# code on server 2003

Post by gunjan »

I m using c# project to call .exe of pdf xchange viwer code is as follows:

protected void Button1_Click(object sender, EventArgs e)
{
Process someProcess = new Process();
try
{
someProcess.StartInfo.UseShellExecute = false;
someProcess.StartInfo.FileName = @"D:\desktop\Tracker\PDF\PDFXCview.exe";
someProcess.StartInfo.Arguments = @"C:\wwwroot\PDFOpenworking\caution.pdf";
someProcess.Start();

}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
this is working fine when I m running at my local machine (localhost) using Wind XP,
But not working at all when deployed at server wind 2003.
Please Tell me whats the issue ASAP.

Thanks
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: calling .exe from C# code on server 2003

Post by Stefan - PDF-XChange »

Hello gunjan,

You said "But not working at all when deployed at server wind 2003." - are there any error messages you receive from your code there - without an error code (or a pop-up message) we won't be able to help much.

Best,
Stefan
gunjan
User
Posts: 2
Joined: Wed May 09, 2012 10:32 am

Re: calling .exe from C# code on server 2003

Post by gunjan »

Thanks for ur quick reply....
No it's not throwing any error message when I tried to catch ....no exception . no error...nothing..
I even Tried each and every step that of configuration for IIS 6 and windows server2003 (that's I m using) I found by searching over the google .. but no luck...
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: calling .exe from C# code on server 2003

Post by Stefan - PDF-XChange »

Thanks for the follow up gunjan,

But without an error code from which to start - we really can't even guess what could be wrong on the windows server 2003. I hope you will manage to get some more info about this that will allow us to investigate this further!

Best,
Stefan