473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

System.IO.IOException: "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
http://www.nws.noaa.gov/forecasts/xm...n/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".

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.IOException'
occurred in system.dll

Additional information: Unable to read data from the
transport connection.
Unhandled Exception: System.IO.IOException: Unable to read
data from the transport connection.
at System.Net.ConnectStream.BeginRead(Byte[] buffer,
Int32 offset, Int32 size, AsyncCallback callback, Object
state)
at System.Net.ConnectStream.Read(Byte[] buffer, Int32
offset, Int32 size)
at System.IO.StreamReader.ReadBuffer(Char[] userBuffer,
Int32 userOffset, Int32 desiredChars, Boolean&
readToUserBuffer)
at System.IO.StreamReader.Read(Char[] buffer, Int32
index, Int32 count)
at System.Xml.XmlScanner.Read()
at System.Xml.XmlScanner.ScanContent()
at System.Xml.XmlTextReader.ParseRoot()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.ReadEndElement()
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadRe
sponse(SoapClientMessage message, WebResponse response,
Stream responseStream)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke
(String methodName, Object[] parameters)
at TestNWS.gov.noaa.nws.www.ndfdXML.NDFDgen(Decimal
latitude, Decimal longitude, productType product, DateTime
startTime, DateTime endTime, weatherParametersType
weatherParameters) in
L:\Data\Programming\Weather\TestNWS\Web
References\gov.noaa.nws.www\Reference.cs:line 38
at TestNWS.Form1.button1_Click(Object sender, EventArgs
e) in l:\data\programming\weather\testnws\form1.cs:line 96
Nov 21 '05 #1
0 11202

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

Similar topics

1
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...
2
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 ...
0
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...
5
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...
1
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...
0
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: ...
1
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...
3
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
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...

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.