T
Terry Mulvany
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/<virt_dir>/<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.
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/<virt_dir>/<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.