P
pri_sh
I have a third party exe which takes in a set of arguments including
filenames and searches for information through it own server over the
internet and then writes results to output files. I got this exe to run
when called from a windows application in VB.NET. When I tried to do
the same using a webservice, the process.start runs without error and I
do not get any errors or output. No result files are generated. Can
someone tell me why this may be happening. I did create another exe in
VB which basically writes to a file. I called this exe from the
webservice and it worked and also created my file.
The code I am using is as below.
myProcess.StartInfo.FileName = "ThirdParty.exe"
args = "Someargs"
myProcess.StartInfo.Arguments = args
myProcess.StartInfo.WorkingDirectory = "<location path>"
myProcess.StartInfo.CreateNoWindow = True
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.ErrorDialog = True
myProcess.StartInfo.RedirectStandardError = True
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.Start()
myProcess.WaitForExit()
Dim i As Integer = myProcess.ExitCode()
Dim sErr As String = myProcess.StandardError.ReadToEnd()
Dim sOut As String = myProcess.StandardOutput.ReadToEnd()
sOut shows correct information when running from windows app but none
when run rfom web service.
filenames and searches for information through it own server over the
internet and then writes results to output files. I got this exe to run
when called from a windows application in VB.NET. When I tried to do
the same using a webservice, the process.start runs without error and I
do not get any errors or output. No result files are generated. Can
someone tell me why this may be happening. I did create another exe in
VB which basically writes to a file. I called this exe from the
webservice and it worked and also created my file.
The code I am using is as below.
myProcess.StartInfo.FileName = "ThirdParty.exe"
args = "Someargs"
myProcess.StartInfo.Arguments = args
myProcess.StartInfo.WorkingDirectory = "<location path>"
myProcess.StartInfo.CreateNoWindow = True
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.ErrorDialog = True
myProcess.StartInfo.RedirectStandardError = True
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.Start()
myProcess.WaitForExit()
Dim i As Integer = myProcess.ExitCode()
Dim sErr As String = myProcess.StandardError.ReadToEnd()
Dim sOut As String = myProcess.StandardOutput.ReadToEnd()
sOut shows correct information when running from windows app but none
when run rfom web service.