Hi All-
I was wondering if anyone could help me with this issue. I am trying to run this 3rd party application called "CoreFTP.ex e" from within C#. I have tested my code with "Notepad.ex e" and that opens up fine. I've tried it with another program executable and it works as well. When I go to run coreftp.exe, it will not work. I have even tried putting code into a .bat file and trying to execute that and it executes, but I get the same runtime error I have detailed below (both when running the .bat file and when running the below code):
Run-time Error!
C:\Program Files\CoreFTP\c oreftp.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 code I'm using from within .NET:
proc.StartInfo. UseShellExecute = true;
proc.StartInfo. WorkingDirector y = @"C:\Program Files\CoreFTP";
proc.StartInfo. FileName = "coreftp.ex e";
proc.Start();
When I double-click on the program directly, it comes up no problem. Also, when I double-click on the .bat file it works no problem as well. What is the difference between running it in .NET and running it manually? I cannot figure this one out. Any help on this would be AWESOME!
Thank you.
I was wondering if anyone could help me with this issue. I am trying to run this 3rd party application called "CoreFTP.ex e" from within C#. I have tested my code with "Notepad.ex e" and that opens up fine. I've tried it with another program executable and it works as well. When I go to run coreftp.exe, it will not work. I have even tried putting code into a .bat file and trying to execute that and it executes, but I get the same runtime error I have detailed below (both when running the .bat file and when running the below code):
Run-time Error!
C:\Program Files\CoreFTP\c oreftp.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 code I'm using from within .NET:
proc.StartInfo. UseShellExecute = true;
proc.StartInfo. WorkingDirector y = @"C:\Program Files\CoreFTP";
proc.StartInfo. FileName = "coreftp.ex e";
proc.Start();
When I double-click on the program directly, it comes up no problem. Also, when I double-click on the .bat file it works no problem as well. What is the difference between running it in .NET and running it manually? I cannot figure this one out. Any help on this would be AWESOME!
Thank you.
Comment