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

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!!
 
A

Alex Feinman [MVP]

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
 
G

Guest

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.
 
A

Alex Feinman [MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top