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
calling .exe from C# code on server 2003
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
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: calling .exe from C# code on server 2003
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
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
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...
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...
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: calling .exe from C# code on server 2003
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
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