Hi guys,
i have a function to run an exe. If i put the function windows application, it can run the exe. but if i put the function in web service and call the web service from windows application, it cannot run the exe.
this is the function that i put in web service:
it did not throw any exception. just didn't run the exe.
any idea why this happened?
i have a function to run an exe. If i put the function windows application, it can run the exe. but if i put the function in web service and call the web service from windows application, it cannot run the exe.
this is the function that i put in web service:
VB.NET:
Dim info As New ProcessStartInfo()
Dim preader As StreamReader
Dim htmltoolsPath
Dim xmlDoc As New XmlDocument
htmltoolsPath = ConfigurationManager.AppSettings("htmlToolsPath")
' info.FileName = "C:\htmltools\htmltools.exe"
info.FileName = htmltoolsPath
info.Arguments = inFile & " " & outFile
info.UseShellExecute = False
info.RedirectStandardOutput = True
Dim returnvalue As Process
Dim exeStatus As Boolean
returnvalue = Process.Start(info)
exeStatus = returnvalue.Start()
If exeStatus Then
preader = returnvalue.StandardOutput
preader.ReadToEnd()
End If
it did not throw any exception. just didn't run the exe.
any idea why this happened?