Connecting to the webservice from PDA when the network is not on

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a PDA Application that connects to the webserivce in the host
computer. When I run the webservice in the computer with the url
:"Http://computername//Webservice/*.asmx" without connecting to the network
it works fine. But I can't get the device to connect to the webservice. I
got "A managed WebException occured at SoapHttpClientProtocol::doInvoke+0X23f
Couldn't find the resource assembly.

I have the webservice and the databse in the salesperson's laptop and
I would like my PDA application to connect to that laptop for the demo
purpose when the laptop is not connected to our network.

I don't understand why the PDA needs the network connection to
resolve the computer name, when the webserver as well as the database server
is in the computer that happens to be the device is connected to. Please
help me in this.

Thanks!!
 
Try using an IP address instead of <computername>. Windows CE IP stack will
use either DNS or WINS to resolve names, none of which seems to be available
in your case
 
Alex,

I tried using IP Adress. But that also didn't work. When the PC is
connected to the network it does fine with the device and the emulator. Even
when the computer is not connected to the network, the System.Net.DNS.Resolve
didn't work.
But when we try to fake the computer with a switch, it works out.
 
YOu need some kind of network connection. I suspect that having a loopback
adapter will be sufficient. Also, do you have SP2 or newer installed?
 
Back
Top