Hi,
I am trying to execute coreftp.exe from within my .NET program and I keep getting a run-time error from the Microsoft Visual C++ Runtime Library saying the following:
Run-time Error!
C:\Program Files\CoreFTP\coreftp.exe
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
This is the C# code I'm using in .NET:
proc.StartInfo.WorkingDirectory = @"C:\Program Files\CoreFTP";
proc.StartInfo.FileName = "coreftp.exe";
proc.Start();
When I double-click on the coreftp.exe directly, it opens fine. When I open other .exe's (such as Notepad.exe) from within .NET, it works fine.
I've even tried putting the desired commands into a .bat file and executing that from within .NET and I still get the same error. If I run the .bat file by double-clicking it, CoreFTP opens just fine. Please HELP!!!!