Consuming Web Service from Pocket PC 2003 using VS2005 unexplained error ???

gcheg

New member
Joined
Feb 1, 2007
Messages
2
Programming Experience
5-10
Hello all,

I am trying to use a web service from Pocket PC 2003 using Visual Studio 2005 and I keep getting the following errors on the Pocket PC 2003 app.
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in System.Web.Services.dll

I have even created a new web service with just the standard "Hello World" but still get the same error. I have used web services the same way using VS2003 with no problems so it's got me beat at the moment.

Here is my code:

Web Service:
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello World"
End Function

Mobile Code:
Dim objTest As New localhost.Service
Dim strTest As String
Try
blnTest = objTest.HelloWorld()
Catch ex As Exception
Windows.Forms.MessageBox.Show(ex.Message.ToString)
End Try


By the way I can access the web service without an error through Internet Explorer.

Any help would be much appreciated - I have found many people posting similar questions on the web but no solution.

Thanks in advance.
Gareth
 
Hi Dave,

No I didn't get it resolved completely as in I am still getting first chance exceptions but the program is working. I gathered that the exceptions where not what was causing my program not to work. I found that as I was trying to use a local webservice I couldn't use the machine name for the webservice URL but if I used the IP address it worked ie. instead of using http://gcheg/webservice I used http://192.168.1.5/webservice

Hope that makes sense and helps you out

Gareth.
 
Hi there,

Is there any chance you could upload your project for me? Just for educational purposes for me.

Thanks.
 
Back
Top