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

Home Posts Topics Members FAQ

System.IO.IOExc eption: "Unable to read data from the transport connection."

Hi, I've been trying to use the weather webservice
available from the National Weather Service (NWS), at
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-

I know this is starting to sound like I should post this
to the NWS, and tell them their webservice is screwed up
(like that would do any good - trying to get service out
of the federal government), but here's where it turns
really weird. When I use .NET version 2.0 (the beta),
everything works fine. Perfectly fine. No problems with
productType set either way. And the format of the two
responses (xml string, BTW) doesn't seem strange, either.

The client I've been using is as simple as can be, just a
button on a form, with no fancy threading or anything. It
uses the autogenerated classes from the VS.NET IDE (2002)
or wsdl.exe (tried it both ways). Here's the stack trace
(starting at the button click), if anyone is still
reading. Thanks in advance.

An unhandled exception of type 'System.IO.IOEx ception'
occurred in system.dll

Additional information: Unable to read data from the
transport connection.
Unhandled Exception: System.IO.IOExc eption: Unable to read
data from the transport connection.
at System.Net.Conn ectStream.Begin Read(Byte[] buffer,
Int32 offset, Int32 size, AsyncCallback callback, Object
at System.Net.Conn ectStream.Read( Byte[] buffer, Int32
offset, Int32 size)
at System.IO.Strea mReader.ReadBuf fer(Char[] userBuffer,
Int32 userOffset, Int32 desiredChars, Boolean&
readToUserBuffe r)
at System.IO.Strea mReader.Read(Ch ar[] buffer, Int32
index, Int32 count)
at System.Xml.XmlS canner.Read()
at System.Xml.XmlS canner.ScanCont ent()
at System.Xml.XmlT extReader.Parse Root()
at System.Xml.XmlT extReader.Read( )
at System.Xml.XmlR eader.ReadEndEl ement()
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRe
sponse(SoapClie ntMessage message, WebResponse response,
Stream responseStream)
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke
(String methodName, Object[] parameters)
at TestNWS.gov.noa a.nws.www.ndfdXML.NDFDgen(Decimal
latitude, Decimal longitude, productType product, DateTime
startTime, DateTime endTime, weatherParamete rsType
weatherParamete rs) in
L:\Data\Program ming\Weather\Te stNWS\Web
References\gov. noaa.nws.www\Re ference.cs:line 38
at TestNWS.Form1.b utton1_Click(Ob ject sender, EventArgs
e) in l:\data\program ming\weather\te stnws\form1.cs: line 96
Nov 21 '05 #1
0 11222

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

Similar topics

by: Kevin Vogt | last post by:
When initially loaded, my web application (below) takes ~120000 milliseconds to open its connection. But repeated executions take 0 milliseconds each. But when I wait for approx. 5 minutes and try again, it takes another 120000 milliseconds for Open(). This behavior gets really irritating with the real web application that I'm working on. ...
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET Here's the scenario: 1. .NET Windows Client on a remote machine makes a web service call to update tables on a Web Server running SQL Server...
by: NicK chlam via DotNetMonster.com | last post by:
this is the error i get System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement. at System.Data.Common.DbDataAdapter.Update(DataRow dataRows, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable) at System.Data.Common.DbDataAdapter.Update(DataSet dataSet) at...
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve this error? Oracle error occurred, but error message could not be retrieved from Oracle. Description: An unhandled exception occurred during the...
by: Optimus | last post by:
Hi everyone, I currently develop an application in vs.net 2005 with vb.net. I was trying to use typed dataset and I've got in trouble for converting untyped dataset into Typed DataSet. I don't know why I cannot perform this casting operation properly. First off, I've got my Typed DataSet named "AuthInfo" declared and I then created an...
by: Mentalis | last post by:
I have a web service that makes a request to several different xml feeds. I am having problems with one in particular and the connection keeps reporting the following error: System.IO.IOException: Unable to read data from the transport connection. ---System.Net.Sockets.SocketException: An existing connection was forcibly closed by the...
by: weird0 | last post by:
System.Data.SqlClient.SqlException: An attempt to attach an auto- named database for file "Location" failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. I am getting the above the exception while connecting to the db and i have written a web-service... i.e. a webmethod. What...
by: weird0 | last post by:
This is the exception that I get when i create a webserivce obj and call. The error comes on the webmethod call, when it opens a connection to the db. How do I fix it? What is the solution to this? System.Web.Services.Protocols.SoapException: Server was unable to process request. ---System.Data.SqlClient.SqlException: An attempt to...
by: sattu | last post by:
hi friends, i have one class and i have created two properties and filled this property through dataset but when i created object o this class to access this property to fill textbox i am geting this problem "Unable to cast object of type 'System.Data.DataColumn' to type 'System.IConvertible"
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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...
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...
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...
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...
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
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...

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.