Re: Smart Device App fails calling simple Web Service...

From: casey chesnut (casey_at_MORE_spam_PLEASEbrains-N-brawn.com)
Date: 04/12/04


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/>/<file>.asmx [the same web reference mind you
> 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.
>
>



Relevant Pages

  • Re: Write to IIS/Event Log File ?
    ... >with an exception that might arise, ... >either in the web service, ... >Writting to the event log threw me Security Exceptions, ... NET Framework Class Library: ApplicationActivationAttribute ...
    (microsoft.public.dotnet.general)
  • Re: Problem with Exception Handling using Web Services
    ... private void checkPassword ... The Exception is definitely thrown, but when I run it in a web browser it ... >> Microsoft Visual C#.NET to interact with the web service. ... >> Adrian Burka ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Retry on certain exceptions?
    ... because of a sql exception, I'll end up getting a bunch of suspended ... custom exception I'll end up with 1 suspended message. ... would be no suspended messages if the web service throws my custom exception ... then add a loop shape. ...
    (microsoft.public.biztalk.general)
  • SoapException
    ... An unhandled exception of type ... This is an excerpt from my Web Service (which runs on an ISP and I cannot ... public String PutStaticData ... Since the exception is unhandled, and I have a catch statement for this ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Smart Device App fails calling simple Web Service...
    ... I have a smart device application that cannot communicate with a web ... I am getting the following exception... ... Then I wrote a Web Form App that SUCCESSFULLY consumed the web service by ... variable to the return of the web method. ...
    (microsoft.public.dotnet.framework.compactframework)