J
Jay Balapa
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.WaitCursor;
PocketInspector.localhost.PocketService mySrv=new
PocketInspector.localhost.PocketService();
mySrv.Url="http://"+DatabaseGateway.ServerNameString+"/pocketservice.asmx";
string myString=mySrv.TestWebService();
MessageBox.Show(myString);
Cursor.Current = Cursors.Default;
}
catch(WebException err)
{
MessageBox.Show("This program is expected to throw WebException on
successful run."+
"\n\nException Message :" + err.Message);
if(err.Status == WebExceptionStatus.ProtocolError)
{
MessageBox.Show("Status Code : {0}",
((HttpWebResponse)err.Response).StatusCode.ToString());
MessageBox.Show("Status Description : {0}",
((HttpWebResponse)err.Response).StatusDescription);
}
}
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.WaitCursor;
PocketInspector.localhost.PocketService mySrv=new
PocketInspector.localhost.PocketService();
mySrv.Url="http://"+DatabaseGateway.ServerNameString+"/pocketservice.asmx";
string myString=mySrv.TestWebService();
MessageBox.Show(myString);
Cursor.Current = Cursors.Default;
}
catch(WebException err)
{
MessageBox.Show("This program is expected to throw WebException on
successful run."+
"\n\nException Message :" + err.Message);
if(err.Status == WebExceptionStatus.ProtocolError)
{
MessageBox.Show("Status Code : {0}",
((HttpWebResponse)err.Response).StatusCode.ToString());
MessageBox.Show("Status Description : {0}",
((HttpWebResponse)err.Response).StatusDescription);
}
}