Hi,
We've written code in C#.Net (Microsoft .Net Framework 1.1) for a Windows service to download the .csv files from different sites over GPRS connections through FTP. The Service runs on mulptiple threads to connect to multiple GPRS modems (as of now we are using 3 GPRS modems/connections) to collect the files from different sites at the same time.
It all download files and works fine for some time. But later after some time any one of the gateways only works where in the other two goes into hang over condition. At this time there are no trace logs also been updated to find out the root problem. But very recently we got the message that is written into the trace log file as "Exception: Unable to read data from the transport connection" when one of the gateways hanged and started to download the files after three days.
Has anyone any suggestions, comments or experience on this issue
Any help would be much appreciated.
Thanks in advance.
Vijay M.

Exception: Unable to read data from the transport connection
Nick.Muguira
You can't just append you need to make sure that the
config file is properly formed according to the XML rules
THere is no need for recompilation. You could try with a simple
example I already have on my blog.
Zidan
I am interested in this issue. I would like to find out what is going on.
1. Are you closing your response Streams after reading is done
This is very important to do.
2. Please get a System.Net.trace file. This will show us clearly what is going on.
3. ALso please get a network monitor trace.
Hanging for 3 days is strange - Please also send your code snippet
Chrisatwg
What is the "gateway" Why is it hanging
Did you apply any timeouts
Did you get the System.Net.Trace log files
If not please look into http://blogs.msdn.com/dgorti
What would be helpfule is the
1) Network Monitor trace
2) System.Net trace file.
We can go from there
SK_Rajdev
Where do I can locate this Trace log file
I've done the changes as per your instructions. But couldn't view any trace file while the Service is running and downloading the files. I thought that the trace log will popup automatically soon after the exe starts running.
Please advice.
Beeblebrox_dk
Do I need to rebuild my solution after I introduce the code in app.exe.config file to get the System.Net Trace log or Is it ok if I directly append the piece of trace code in the existing config file for the exe and run it to get the trace log
Please suggest.
Based on your suggestion I'll do the needful and send you all that you asked for i.e System.Net Trace log, Network Monitor trace and also the Code snippet.
And for your question, Yes we are closing response Streams after reading is done.
Impacty
The "Gateway" is nothing but the GPRS connection.
The hanging to the connection is occuring while downloading the files from the remote sites through FTP.
We've not applied any timeouts.
We are using our own defined Log files where in we'll write to these files at the end of one process execution, for e.g. before starting to download the file, after successful completion of downloading the file and for any exception that occurs while downloading and so on.
The following are the few lines for your reference what we write to the Log files.
04-Mar-2006 14:08:08, 0, Started downloading file AL040306.CSV from Controller N5-1-PLATINUMCITY
04-Mar-2006 14:08:28, 0, Completed downloading file AL040306.CSV
07-Mar-2006 12:03:52, 1, Error Downloading Load Survey Files. Exception: Unable to read data from the transport connection.
07-Mar-2006 12:03:53, 0, Could not download Load Survey files from controller - N5-1-PLATINUMCITY
07-Mar-2006 12:03:56, 0, (Trial:2) Starting to Poll controller - N5-1-PLATINUMCITY (10.151.2.35)
07-Mar-2006 12:04:06, 1, FTP communication error with Controller - N5-1-PLATINUMCITY Exception: Unable to read data from the transport connection.
Please find in the above lines were written in a sequence for one of the GPRS connections' Log file where it was hanged for 3 days (marked in Red) i.e. from 4th March to 7th March and came up itself and started working again.
And one more observation we found was that the hanging is occuring after completion of downloading any file.
I hope, now you got my problem.
Please Help.
Thank you.