I have written a C# WinForms program that is to run as a scheduled task, does some file processing and then ends with an FTP session using the scripting version of WS FTP 12. The program runs fine and completes all tasks including the FTP.
However, when the program terminates, I receive the following .NET Runtime 2.0 Error:
EventType clr20r3, P1 fireeventxfer.exe, P2 22.214.171.124, P3 4c7fb5ce, P4 system.windows.forms, P5 126.96.36.199, P6 4889dee7, P7 14d2, P8 23, P9 system.objectdisposedexception, P10 NIL.
I launch the FTP program using Process.Start(); I have a Process.WaitForExit(); I capture the Process.ExitCode which is always 0; and I Process.Close() call. I have all of this within a try...catch block, and have never had it throw an error.
I put in a delay for the program to wait 60 seconds after the FTP process exited to make sure it was truly finished, and all that did was delay the error.
I don't believe I have an unhandled exception in the code. I have gone through the entire program step-by-step, and I have a trace file that captures virtually the entire program execution for almost every line of code. If I comment out the FTP
code, the error does not occur. The error never occurs until the program exits. I have an interactive mode that I run the program in that has buttons to start/stop t
View Complete Post