473,554 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Unable to read data from the transport connection" exception

Hello,

Every now and then my application throw this exception:

"Unable to read data from the transport connection"

And when I break into the Visual Studio, the thread where it failed has none
of my code and the following is the call stack:
system.dll!Syst em.Net.Connecti on.ReadCallback (System.IAsyncR esult
asyncResult = {System.Net.Soc kets.Overlapped AsyncResult}) + 0x37d bytes

system.dll!Syst em.Net.LazyAsyn cResult.InvokeC allback() + 0x27 bytes

system.dll!Syst em.Net.LazyAsyn cResult.InvokeC allback(bool
completedSynchr onously = false, System.Object result = {0}) + 0x23 bytes

system.dll!Syst em.Net.Sockets. OverlappedAsync Result.Completi onPortCallback( u
int errorCode = 10038, uint numBytes = 0, System.Threadin g.NativeOverlap ped*
nativeOverlappe d = 220220032) + 0xf2 bytes

Question is how do I know *where* exactly in my code that cause this
exception? I really don't know what trigger this (apart from from probably
in the Net connection, I do open a number of them and tried to close all
properly). I put all the Net connection in try catch block but none really
shows any problem.

Help, I'm stumped on this one.

thanks,

/m
Nov 15 '05 #1
1 4182
Update on my previous problem, I found out in my console that I have the
following exception. Hmm seems it is related with something that can't
access a disposed object.

Unhandled Exception: System.IO.IOExc eption: Unable to read data from the
transport connection. ---> System.ObjectDi sposedException : Cannot access a
disposed object.
at System.Threadin g.ManualResetEv ent.Reset()
at System.Net.Conn ection.ReadCall back(IAsyncResu lt asyncResult)
--- End of inner exception stack trace ---
at System.Net.Conn ection.ReadCall back(IAsyncResu lt asyncResult)
at System.Net.Lazy AsyncResult.Inv okeCallback()
at System.Net.Lazy AsyncResult.Inv okeCallback(Boo lean
completedSynchr onously,Object result)
at System.Net.Sock ets.OverlappedA syncResult.Comp letionPortCallb ack(UInt32
errorCode, UInt32 numBytes, NativeOverlappe d* nativeOverlappe d)

Any help will be much appreciated.

thanks,

/m

Hello,

Every now and then my application throw this exception:

"Unable to read data from the transport connection"

And when I break into the Visual Studio, the thread where it failed has none of my code and the following is the call stack:
system.dll!Syst em.Net.Connecti on.ReadCallback (System.IAsyncR esult
asyncResult = {System.Net.Soc kets.Overlapped AsyncResult}) + 0x37d bytes

system.dll!Syst em.Net.LazyAsyn cResult.InvokeC allback() + 0x27 bytes

system.dll!Syst em.Net.LazyAsyn cResult.InvokeC allback(bool
completedSynchr onously = false, System.Object result = {0}) + 0x23 bytes

system.dll!Syst em.Net.Sockets. OverlappedAsync Result.Completi onPortCallback( u int errorCode = 10038, uint numBytes = 0, System.Threadin g.NativeOverlap ped* nativeOverlappe d = 220220032) + 0xf2 bytes

Question is how do I know *where* exactly in my code that cause this
exception? I really don't know what trigger this (apart from from probably
in the Net connection, I do open a number of them and tried to close all
properly). I put all the Net connection in try catch block but none really
shows any problem.

Help, I'm stumped on this one.

thanks,

/m

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
13937
by: rotarinn | last post by:
Hi, I am using VisualStudio.NET 2003 trying to connect to an Oracle Database (version 8.0.5). I have created the connection using "Microsoft OleDBProvider for Oracle" and when I click on Test connection, I get a message showing "Test connection succeeded". However, when I try to drag a table from the connection into a dataset, I get the...
0
1342
by: aladdin | last post by:
Hi, I want to know under how many situations this error will occur? My program has a server-side and client-side: In server program, it reads some file by ReadLine, and write to client by WriteLine. The input file is always changed by another process. In client program, it just use ReadLine to read anything server sends. However,...
3
4684
by: 21novembre | last post by:
Hi all, I made a question several days before to describe my strange trouble of mysqldump. But I still can't figour it out. Well, I just want to ask another question whether I could just backup my databases by copying the data folder to some place? Then if I meet some disaster, could I just copy the backup folder back to recover my...
0
3495
by: Galore | last post by:
Hello, I'm trying to make a simple socket application, something like a chat application, but when I run it, it shows the following error when the client connects to the server: "Unable to read data from the transport connection.". I'm posting the code, so if somebody can help I'll be very grateful. private void DoListen() {
2
23516
by: Bob Rock | last post by:
I already found an alternative way to accomplish this (using ReadBytes), still I'd like to understand why I'm getting and error reading a text file using the following method. The exception is returned on the ReadString call. public string BinaryRead(string fileName) { FileStream stream = File.Open(file, FileMode.Open, FileAccess.Read,...
0
11222
by: Aryeh Holzer | last post by:
Hi, I've been trying to use the weather webservice available from the National Weather Service (NWS), at http://www.nws.noaa.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML. wsdl without success. Here's what I've found so far. When I use .NET 1.0/1.1, and try to call the primary webservice method NDFDgen, the call will succeed if the productType is...
0
2404
by: quocvuong2005 | last post by:
Hi all ! I have a webservice that contains a Helloworld() method (This return a string type ) and a asp.net application . I call Helloworld method from webservice , it works fine . but when i call this method again , it have problem with error message following: Unable to read data from the transport connection. at...
0
2529
by: quocvuong2005 | last post by:
Hi all ! I have a webservice that contains a Helloworld() method (This return a string type ) and a asp.net application . I call Helloworld method from webservice , it works fine . but when i call this method again , it have problem with error message following: Unable to read data from the transport connection. at...
2
6342
by: Peter Afonin | last post by:
Hello, I'm using CreateUserWizard control in ASP.NET 2.0. I'm storing the data in SQL Server 2005. The first and last steps run smoothly without any problems. But I added one middle step to collect some other information from the user. I've added this to Web.config: <profile>
0
7530
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7570
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7893
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6156
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5441
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3556
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2022
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1141
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.