Re: Smart Device App fails calling simple Web Service...
From: casey chesnut (casey_at_MORE_spam_PLEASEbrains-N-brawn.com)
Date: 04/12/04
- Next message: Jan Yeh [MVP]: "Re: Access to files on PC from a mobile device"
- Previous message: James McCutcheon: "Re: Trouble on executing application on iPAQ 5555"
- In reply to: Terry Mulvany: "Smart Device App fails calling simple Web Service..."
- Next in thread: Terry Mulvany: "Re: Smart Device App fails calling simple Web Service..."
- Reply: Terry Mulvany: "Re: Smart Device App fails calling simple Web Service..."
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 12 Apr 2004 08:28:46 -0500
its is probably because your URL is using localhost.
the device or emulator thinks localhost is itself,
and not the machine where you are running the web service.
change that to be an IpAddress or MachineName.
Thanks,
casey
http://www.brains-N-brawn.com
"Terry Mulvany" <thmulvany@yahoo.com> wrote in message
news:eoRanOEIEHA.2728@TK2MSFTNGP10.phx.gbl...
> I have a smart device application that cannot communicate with a web
> service.
> I am getting the following exception...
>
> An unhandled exception of type 'System.Net.WebException' occurred in
> System.Web.Services.dll
> Additional information: Unable to connect to the remote server
>
> I am running on XP Pro, VS.Net 2003. I have built a very basic Web
Service
> that returns a DataSet from a sql server stored proc using
MS.AppBlock.Data.
> Then I wrote a Web Form App that SUCCESSFULLY consumed the web service by
> way of a datagrid on the form.
>
> I then create a Smart Device App project, added a Web Reference to
> http://localhost/
> that succeeded in the web form app].
> I am runnig the smart dev app thru (F5/debug) via deployment to the Pocket
> PC 2002 emulator. When I put a breakpoint on the line that instantiates
the
> class in the web service it does not throw an exception only on the next
> line where it tries to run the web method in this class that returns the
> dataset.
>
> [first line suceeds and second fails]
> localhost.ScheduleWS s = new localhost.ScheduleWS();
> dgMain.DataSource = s.GetWeeklySchedule();
>
> NOTE: it does not have anything to do with setting the datagrid datasource
> prop, because it throws the same exception when i just try to set a
dataset
> variable to the return of the web method.
>
> any help would be greatly appreciated, thanks group.
>
>
- Next message: Jan Yeh [MVP]: "Re: Access to files on PC from a mobile device"
- Previous message: James McCutcheon: "Re: Trouble on executing application on iPAQ 5555"
- In reply to: Terry Mulvany: "Smart Device App fails calling simple Web Service..."
- Next in thread: Terry Mulvany: "Re: Smart Device App fails calling simple Web Service..."
- Reply: Terry Mulvany: "Re: Smart Device App fails calling simple Web Service..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|