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
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