473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Run-time error when trying to execute .exe using Process.Start

Hi All-

I was wondering if anyone could help me with this issue. I am trying to run this 3rd party application called "CoreFTP.exe" from within C#. I have tested my code with "Notepad.exe" and that works fine. I've tried it with another program executable and it works. I am receiving this error from within .NET when I try to run "CoreFTP":

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 code I'm using from within .NET:

proc.StartInfo.UseShellExecute = true;
proc.StartInfo.WorkingDirectory = @"C:\Program Files\CoreFTP";
proc.StartInfo.FileName = "coreftp.exe";
proc.Start();

Any help on this would be AWESOME!

Thank you.
Jun 27 '07 #1
3 2278
PLEASE DISREGARD THIS! My first post and I posted it in the wrong forum. Please forgive me!!!



Hi All-

I was wondering if anyone could help me with this issue. I am trying to run this 3rd party application called "CoreFTP.exe" from within C#. I have tested my code with "Notepad.exe" and that works fine. I've tried it with another program executable and it works. I am receiving this error from within .NET when I try to run "CoreFTP":

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 code I'm using from within .NET:

proc.StartInfo.UseShellExecute = true;
proc.StartInfo.WorkingDirectory = @"C:\Program Files\CoreFTP";
proc.StartInfo.FileName = "coreftp.exe";
proc.Start();

Any help on this would be AWESOME!

Thank you.
Jun 27 '07 #2
weaknessforcats
9,208 Expert Mod 8TB
Moving this to the .NET forum
Jun 28 '07 #3
Plater
7,872 Expert 4TB
I believe that error means the CoreFTP.exe application exited with a status other then 0.
What happens when you run that .exe from the commandline?
If it says something about needing specific arguments, it might return something other then a 0.

The old int main() functions would return an int to the operating system to set the ERRORLEVEL (for microsoft) value for batch processing.

It's not really relavent in windows as much, but the Process object could be interpreting the non-zero value to mean an error has occured
Jun 28 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: leroybt.rm | last post by:
Can someone tell me how to run a script from a interactive shell I type the following: >>>python filename >>>python filename.py >>>run filename >>>run filename.py >>>/run filename >>>/run...
2
by: Jenna Olson | last post by:
Hi all- I've never seen this particular issue addressed, but was wondering if there's anything to support one way or another. Say I have a class: class ManipulateData { public:...
7
by: erniedude | last post by:
Hi, I'm a newbie and I was wondering if anyone knew a (Python) script to run 4 batch files, one after the other (assuming the directories are known). It would be better if all 4 batch files...
13
by: Nemok | last post by:
Hi, Is it possible in anyway to load a file into memory and then run it from there? I am working on a file compressor (www.nemokprod.go.ro/nb.htm) that can compress and encrypt and save...
12
by: Bookreader | last post by:
I tried Googling this but I get a whole lot of replies about running the SQL statement in VB via ADO. All I want to do is run an existing ACCESS 2000 query from VB with no information returned...
21
by: sachin dooble | last post by:
is there any method where i can run my linux code that is all the a.out i made on linux to run on windows. plz tell me the way.
4
by: Wasi Rehman | last post by:
hi friends, I have one webservice which i want to run on win98 system because some reference in that webservice only run in win98, and my ASP.net application is on win2000 pro. I want to call that...
2
by: kk.simhadri | last post by:
Hi everybody, I want to run a bat file which is on different PC in the same network. I am able to run a batch file in my PC through the following code <% set wshell =...
1
by: Peter | last post by:
Hello, Our asp.net 2.0 application uses Microsoft JET provider. This driver is not available under Vista 64. However, this driver is avalable if a .NET application is forced to run as 32 bit...
1
by: GaryDean | last post by:
We have a new server2003 machine that was built like all the rest - IIS and everything needed to run asp.net apps. We have a test asp.net website that we use for new machines to make sure...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.