473,549 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pocket PC - Unable to read data from the transport connection

Hello,

We have a Pocket PC client application which just connects to our
webservice. When a client connects his Pocket PC through his WIFI he gets
the following- Unable to read data from the transport connection .

I have the same setup and am unable to reproduce this problem. This method
just tests the webmethod with a helloworld returned.

Any help is greatly appreciated.

-Jay Balapa

Sample Code -

try

{

Cursor.Current = Cursors.WaitCur sor;

PocketInspector .localhost.Pock etService mySrv=new
PocketInspector .localhost.Pock etService();

mySrv.Url="http ://"+DatabaseGatew ay.ServerNameSt ring+"/pocketservice.a smx";

string myString=mySrv. TestWebService( );

MessageBox.Show (myString);

Cursor.Current = Cursors.Default ;

}

catch(WebExcept ion err)

{

MessageBox.Show ("This program is expected to throw WebException on
successful run."+

"\n\nExcept ion Message :" + err.Message);

if(err.Status == WebExceptionSta tus.ProtocolErr or)

{

MessageBox.Show ("Status Code : {0}",
((HttpWebRespon se)err.Response ).StatusCode.To String());

MessageBox.Show ("Status Description : {0}",
((HttpWebRespon se)err.Response ).StatusDescrip tion);

}

}


Jul 3 '07 #1
7 3087
This could be any number of things.

I am assuming you are using a WSDL generated proxy object. The first thing
that springs to mind is the Timeout property, are you setting this to a
sensible value?

Does the customer have a proxy server?
--
Simon Hart
http://simonrhart.blogspot.com
"Jay Balapa" wrote:
Hello,

We have a Pocket PC client application which just connects to our
webservice. When a client connects his Pocket PC through his WIFI he gets
the following- Unable to read data from the transport connection .

I have the same setup and am unable to reproduce this problem. This method
just tests the webmethod with a helloworld returned.

Any help is greatly appreciated.

-Jay Balapa

Sample Code -

try

{

Cursor.Current = Cursors.WaitCur sor;

PocketInspector .localhost.Pock etService mySrv=new
PocketInspector .localhost.Pock etService();

mySrv.Url="http ://"+DatabaseGatew ay.ServerNameSt ring+"/pocketservice.a smx";

string myString=mySrv. TestWebService( );

MessageBox.Show (myString);

Cursor.Current = Cursors.Default ;

}

catch(WebExcept ion err)

{

MessageBox.Show ("This program is expected to throw WebException on
successful run."+

"\n\nExcept ion Message :" + err.Message);

if(err.Status == WebExceptionSta tus.ProtocolErr or)

{

MessageBox.Show ("Status Code : {0}",
((HttpWebRespon se)err.Response ).StatusCode.To String());

MessageBox.Show ("Status Description : {0}",
((HttpWebRespon se)err.Response ).StatusDescrip tion);

}

}


Jul 3 '07 #2
Hi Simon,

Thanks for your quick response.

Customer does not have a proxy server.

What baffles me is that if the customer connects through ActiveSync then it
works.

-Jay


"Simon Hart" <sr*******@yaho o.comwrote in message
news:D0******** *************** ***********@mic rosoft.com...
This could be any number of things.

I am assuming you are using a WSDL generated proxy object. The first thing
that springs to mind is the Timeout property, are you setting this to a
sensible value?

Does the customer have a proxy server?
--
Simon Hart
http://simonrhart.blogspot.com
"Jay Balapa" wrote:
>Hello,

We have a Pocket PC client application which just connects to our
webservice. When a client connects his Pocket PC through his WIFI he gets
the following- Unable to read data from the transport connection .

I have the same setup and am unable to reproduce this problem. This
method
just tests the webmethod with a helloworld returned.

Any help is greatly appreciated.

-Jay Balapa

Sample Code -

try

{

Cursor.Current = Cursors.WaitCur sor;

PocketInspector .localhost.Pock etService mySrv=new
PocketInspecto r.localhost.Poc ketService();
mySrv.Url="htt p://"+DatabaseGatew ay.ServerNameSt ring+"/pocketservice.a smx";

string myString=mySrv. TestWebService( );

MessageBox.Show (myString);

Cursor.Current = Cursors.Default ;

}

catch(WebExcept ion err)

{

MessageBox.Show ("This program is expected to throw WebException on
successful run."+

"\n\nExcept ion Message :" + err.Message);

if(err.Status ==
WebExceptionSt atus.ProtocolEr ror)

{

MessageBox.Show ("Status Code : {0}",
((HttpWebRespo nse)err.Respons e).StatusCode.T oString());

MessageBox.Show ("Status Description : {0}",
((HttpWebRespo nse)err.Respons e).StatusDescri ption);

}

}



Jul 3 '07 #3
Hello,

I think the problem are connection settings for device, if it works through
ActiveSync and not through WiFi so maybe check first if client have
connection to Internet.
I had similar problem and changing settings on location "Start ->
Settings -Connections -Advanced -Select Networks" resolved all my
problems.
"Jay Balapa" <jb*****@hotmai l.comwrote in message
news:uU******** *****@TK2MSFTNG P04.phx.gbl...
Hello,

We have a Pocket PC client application which just connects to our
webservice. When a client connects his Pocket PC through his WIFI he gets
the following- Unable to read data from the transport connection .

I have the same setup and am unable to reproduce this problem. This method
just tests the webmethod with a helloworld returned.

Any help is greatly appreciated.

-Jay Balapa

Sample Code -

try

{

Cursor.Current = Cursors.WaitCur sor;

PocketInspector .localhost.Pock etService mySrv=new
PocketInspector .localhost.Pock etService();
mySrv.Url="http ://"+DatabaseGatew ay.ServerNameSt ring+"/pocketservice.a smx";

string myString=mySrv. TestWebService( );

MessageBox.Show (myString);

Cursor.Current = Cursors.Default ;

}

catch(WebExcept ion err)

{

MessageBox.Show ("This program is expected to throw WebException on
successful run."+

"\n\nExcept ion Message :" + err.Message);

if(err.Status == WebExceptionSta tus.ProtocolErr or)

{

MessageBox.Show ("Status Code : {0}",
((HttpWebRespon se)err.Response ).StatusCode.To String());

MessageBox.Show ("Status Description : {0}",
((HttpWebRespon se)err.Response ).StatusDescrip tion);

}

}


Jul 4 '07 #4
Hi Jay,

we have face same problem, and then we first request client to check
internet connection from his device's browser.
meaning that, from device internet explorer whether he is able to
fetch the web service url ok or not....
and in our case that solved the problem...

other day, the second problem has come that is because slow internet
connections...a t the time of sending 400 kb data to web service,
because of slow connection server was not responding ok...

checkout these options, might be helpful to you....

All the best :)
On Jul 4, 2:13 am, "Jay Balapa" <jbal...@hotmai l.comwrote:
Hello,

We have a Pocket PC client application which just connects to our
webservice. When a client connects his Pocket PC through his WIFI he gets
the following- Unable to read data from the transport connection .

I have the same setup and am unable to reproduce this problem. This method
just tests the webmethod with a helloworld returned.

Any help is greatly appreciated.

-Jay Balapa

Sample Code -

try

{

Cursor.Current = Cursors.WaitCur sor;

PocketInspector .localhost.Pock etService mySrv=new
PocketInspector .localhost.Pock etService();

mySrv.Url="http ://"+DatabaseGatew ay.ServerNameSt ring+"/pocketservice.a smx";

string myString=mySrv. TestWebService( );

MessageBox.Show (myString);

Cursor.Current = Cursors.Default ;

}

catch(WebExcept ion err)

{

MessageBox.Show ("This program is expected to throw WebException on
successful run."+

"\n\nExcept ion Message :" + err.Message);

if(err.Status == WebExceptionSta tus.ProtocolErr or)

{

MessageBox.Show ("Status Code : {0}",
((HttpWebRespon se)err.Response ).StatusCode.To String());

MessageBox.Show ("Status Description : {0}",
((HttpWebRespon se)err.Response ).StatusDescrip tion);

}

}

Jul 4 '07 #5
Check that the device does in fact have a valid IP address when connected via
Wi-Fi.

Also try doing what some of the other posters sugested such as ensuring you
can access the Web Service WSDL or ASMX page via Pocket IE.

If you are able to connect to the Web Service via Pocket IE (able to see Web
Methods) then it is likely to be a coding error.

--
Simon Hart
http://simonrhart.blogspot.com
"Jay Balapa" wrote:
Hi Simon,

Thanks for your quick response.

Customer does not have a proxy server.

What baffles me is that if the customer connects through ActiveSync then it
works.

-Jay


"Simon Hart" <sr*******@yaho o.comwrote in message
news:D0******** *************** ***********@mic rosoft.com...
This could be any number of things.

I am assuming you are using a WSDL generated proxy object. The first thing
that springs to mind is the Timeout property, are you setting this to a
sensible value?

Does the customer have a proxy server?
--
Simon Hart
http://simonrhart.blogspot.com
"Jay Balapa" wrote:
Hello,

We have a Pocket PC client application which just connects to our
webservice. When a client connects his Pocket PC through his WIFI he gets
the following- Unable to read data from the transport connection .

I have the same setup and am unable to reproduce this problem. This
method
just tests the webmethod with a helloworld returned.

Any help is greatly appreciated.

-Jay Balapa

Sample Code -

try

{

Cursor.Current = Cursors.WaitCur sor;

PocketInspector .localhost.Pock etService mySrv=new
PocketInspector .localhost.Pock etService();
mySrv.Url="http ://"+DatabaseGatew ay.ServerNameSt ring+"/pocketservice.a smx";

string myString=mySrv. TestWebService( );

MessageBox.Show (myString);

Cursor.Current = Cursors.Default ;

}

catch(WebExcept ion err)

{

MessageBox.Show ("This program is expected to throw WebException on
successful run."+

"\n\nExcept ion Message :" + err.Message);

if(err.Status ==
WebExceptionSta tus.ProtocolErr or)

{

MessageBox.Show ("Status Code : {0}",
((HttpWebRespon se)err.Response ).StatusCode.To String());

MessageBox.Show ("Status Description : {0}",
((HttpWebRespon se)err.Response ).StatusDescrip tion);

}

}




Jul 4 '07 #6
Simon,

Thanks for your respose.

I have already done most of what you have suggested. Actually those
are all our standard troubleshooting procedures.

I can guarantee that there is no coding errors because we have been
using this application for 2 years and method is a simple hello world
handshake.

I have even simulated a wifi in our end and have worked flawlessly.

Two things I have to look into is timeouts and slow internet
connection.

-Jay Balapa



Jul 4 '07 #7
I have found this solution doing some research and this could be the
solution-
>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>
Reply | New Topic | This is SPAM | This is Offensive
Re: Cannot connect within Firewall

We've encountered this with a few "smart" firewalls that are more
restrictive than just allowing all traffic through a port.
Specifically, some firewalls look at HTTP traffic and validate the
headers sent across are known and allowed.

So, when using webservice calls, the soap request is issuing requests
to the server that fall outside the normal POST/GET etc... and the
firewall denies them.

The setting we've had to change on a Checkpoint firewall product is to
enable "Allow Unknown Headers" or something similar to this.

Of course, you could also be running into an http proxy scenario,
which
introduces several other possible variables. Check your desktop
computer on the network and see if the browser is configured to use a
proxy of any kind. Depending on the type of proxy, and whether you are
using Activesync or Wifi/other, there are usually ways to make this
work as well.
>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>


Jul 4 '07 #8

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

Similar topics

4
4411
by: Mike Dole | last post by:
I'm working on a client - server application based on the 'How to Sockets Server and How to Sockets Client' code from the Visual Basic ..NET Resource Kit. Since I want to be able to send 'big strings' instead of 'one liners' I check the streams for terminators. I'm having problems with the connection, I've been looking and debugging for 2...
0
9964
by: Steve - DND | last post by:
We are continually receiving timeout, and "Unable to write data to the transport connection" errors while using the System.Net.HttpWebRequest class from an ASP.Net web page. Below are the two errors we continue to receive: Source: System Message: The operation has timed-out. Target Function: System.Net.WebResponse GetResponse()
1
4182
by: Muscha | last post by:
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:
5
9219
by: Oliver Huppert | last post by:
Hi all, can someone tell me what I need to develop applications for PPC2003 with C#? I have read several meanings about this topic. Do I need Visual Studio .NET or is Visual C# .NET Standard enough?? thanks regards
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
679
by: Arno | last post by:
Hi, I've written a class for client-socket connection, but I get a lot of times the error message "Unable to read data from the transport connection" when restart reading the stream with socket.BeginRead in the Sub SocketIncomingMsg. I'm debugging now for weeks, but I can't detect where it's going wrong. the part of code where it fails:
1
4015
by: Terrance | last post by:
I'm trying to create a small messenger program that uses the tcpclient and tcplistenter objects. When I start the application and run the thread that fires the tcplistener; once the client sends data then closes the stream and the connection I receive the message Unable to read data from the transport connection: An existing connection was...
0
789
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. Stack Trace at System.Net.Sockets.NetworkStream.Write(Byte buffer, Int32 offset, Int32
3
14036
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted by the software in your host machine. Stack Trace at System.Net.Sockets.NetworkStream.Write(Byte buffer, Int32 offset, Int32
0
7532
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, 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...
0
7461
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...
0
7730
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, 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. ...
0
7971
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...
0
7823
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
6055
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
5381
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
5101
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...
1
1956
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 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.