473,747 Members | 2,754 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 4197
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
13991
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 following message: "The connection could not be opened due to the following error: Unable to load...
0
1350
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, sometimes I get this error but sometimes not. Normally after some communication (like successfully sent by...
3
4697
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 databases? Thank you. Zh.y
0
3517
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
23593
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, FileShare.ReadWrite);
0
11252
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 set to "glance", but fail if set to "time- series".
0
2417
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 System.Net.ConnectStream.BeginRead(Byte buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) at...
0
2538
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 System.Net.ConnectStream.BeginRead(Byte buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) at...
2
6356
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
9353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9305
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9222
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8231
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6790
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6067
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4588
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3296
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
3
2203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.