RE: C# exe calling an exe (process.start) - not working on one server

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Joseph (Joseph_at_discussions.microsoft.com)
Date: 11/09/04


Date: Tue, 9 Nov 2004 11:36:01 -0800

Thank you all for your quick help and suggestions! Unfortunately, I don't
have the source code for the exe that is being called by the C# program, so
am unable to debug it (to set some exit codes - this exe is an old pgm and
doesn't return any return codes).

However, a co-worker pointed out the problem in this case - turns out that
because I was using the windows scheduler to schedule this C# program after
RDP'ing into the server, and was logging off (rather than disconnecting), the
process didn't work. Apparently, the called exe needs the user to be logged
on. Anyway, if I disconnect from my RDP session (instead of logging off), the
process works fine and the data gets pulled into the DBF file!

Thanks for your suggestions though - I'm sure I will get to use them for
other problems that I face in the future!

"Joseph" wrote:

> Hello,
> I have a C# program that builds a txt file and then, calls an external
> exe (this external exe simply imports this txt file into a DBF (DBase) file.
> (we copy a template of the DBF file into the process folder where the exe
> lies and then this clipper EXE does the data move from the txt file to the
> DBF file).
>
>
> This process works fine on at least 3 PCs (Win 2K Pro and Win XP Pro) -
> irrespective of whether I schedule the process or run it by double clicking
> the executable. However, when I try to run this same process on a Win2000
> server, this data move doesn't happen (the DBF file doesn't get populated).
> Since it is a production server, I cannot debug the code there and I am
> unable to recreate the problem on any of the test machines. The program
> doesn't crash or throw an exception - just doesn't do the data move and
> continues as though nothing is wrong. If I call this second exe (for the data
> move) manually, it works fine and moves the data.
>
> I have this C# program set up on the windows scheduler and it is running
> with privileges of an ID that has Local Adminitrator rights.
>
> Any suggestions as to how to resolve this?
> Thanks
> - Joseph
>



Relevant Pages

  • C# exe calling an exe (process.start) - not working on one server
    ... exe file. ... DBF file). ... Since it is a production server, I cannot debug the code there and I am ... I have this C# program set up on the windows scheduler and it is running ...
    (microsoft.public.dotnet.general)
  • Re: C# exe calling an exe (process.start) - not working on one server
    ... Joseph writes: ... > (we copy a template of the DBF file into the process folder where the exe ... > lies and then this clipper EXE does the data move from the txt file to the ... > Since it is a production server, I cannot debug the code there and I am ...
    (microsoft.public.dotnet.general)
  • Re: Technical Delphi Question (but not about coding)
    ... > Windows 2003 Server allow users to rename a running EXE. ... > loading/reloading of resources from the original EXE cause problems? ...
    (borland.public.delphi.non-technical)
  • Re: Simple COM EXE Server question [More queries]
    ... and created my Exe Com server as MTA and then tried to call my exe from ..NET using multiple threads at same time. ... that registers the class factory for the object has entered STA or MTA. ...
    (microsoft.public.vc.atl)
  • Re: New/Old Windows virus? Help required please.
    ... Synflood attack from this server - the server was flooding the entire ... Only when we killed this exe did it stop. ... Current A/V is Symantec 10d and it was fully up to date. ... Oh - the only other thing was that the server had not windows updated ...
    (microsoft.public.security.virus)