I am using Visual Studio Clickones and try to execute (.appref-ms) application
and using RedirectStandardOutput
...
I have to use the option "Prefer 32-bit"
because I am using Access DB with connection string as Provider=Microsoft.Jet.OLEDB.4.0.
This is my execution code :
var p = new Process();
p.StartInfo = new ProcessStartInfo(@"C:\Users\hed-b\Desktop\PulserTester.appref-ms")
{
RedirectStandardOutput = true,
UseShellExecute = false
};
p.Start();
reportNumber = p.StandardOutput.ReadToEnd();
p.WaitForExit();
This is the error I have got
System.ComponentModel.Win32Exception: 'The specified executable is not a valid application for this OS platform.'
Editing
By look here, I see that I can run it by cmd
as
var proc = Process.Start(@"cmd.exe ",@"/c C:\Users\hed-b\Desktop\PulserTester.appref-ms")
But How can I use RedirectStandardOutput this way?