开发者

Windows Mobile Web Services - works while tethered, not while using cell data network

开发者 https://www.devze.com 2022-12-09 23:31 出处:网络
I\'ve written an ASP.NET web service that I would like a .NET 3.x application runnin开发者_高级运维g under Windows Mobile 6.1 to communicate with.

I've written an ASP.NET web service that I would like a .NET 3.x application runnin开发者_高级运维g under Windows Mobile 6.1 to communicate with.

When the phone is connected to a desktop via USB/ActiveSync it can communicate with the web service flawlessly.

When I place the phone on the cell network (unplug the USB cable) it is not able to communicate with the web service. I get a System.Net.WebException -> Unable to connect to remote server. System.Net.Sockets.SocketException -> A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

When I attempt to browse to the ASMX page via the mobile browser (Opera), while on the cell network, it connects and renders the description page perfectly.

Any ideas?


I solved this before seeing GenericTypeTea's comment - but good job GTT, right on the money.

Apparently when you use the GUI in VS to add a web reference it converts the domain address into an IP address. How ridiculous.

Anyhow.. solved.

0

精彩评论

暂无评论...
验证码 换一张
取 消