VS.NET 2005 BETA2 : Could not establish connection to network

Hello to all!
I just create one simple solution in VS.NET 2005 Beta2 with 2 projects:
-webservice project (just with default HelloWorld web method)
-smartDevice project (who call HelloWorld web method)

When I try to call WebMethod the error occurred (I use PocketPC 2003 Emulator):
An unhandled exception of type 'System.Net.WebException' occurred in System.Web.Services.dll
Additional information: Could not establish connection to network.

When I write the same code in Windows project everything works OK.
In VS.NET 2003 also works OK.

I use this code:
--
localhost.Service s = new localhost.Service();
MessageBox.Show(s.HelloWorld());
--


Some ideas?
TIA,
Bojan


Bojan
[1081 byte] By [BojanMacele] at [2008-2-4]
# 1
Have you tried this code on a real device?
You probably have to specify the url of the service as it doesn't reside on the emulator. Verify that you can access the service from the Emulator's Internet Explorer. Some configuration is necessary to get the emulator to access the internet. The easiest way is to use ActiveSync through the Device Emulator Manager.
You can try using the WebProxy object to connect to a web service as such:
MyService service = new MyService();
service.Proxy = System.Net.WebProxy.GetDefaultProxy();
service.url = "http://myserviceaddress.com/service.asmx";
CarlBrochu at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 2
Carl,
Thanks for your answer.
When I change WebReferenc URL to computer name (before I had computer IP) everything works OK. I use Device Emulator Manager.
Thanks again, Carl.
Bojan
BojanMacele at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...
# 3

If i try to add the web reference a get this error didn't you got it?

Server Error in '/' Application.


Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type 'Service'.

Source Error:

Line 1: <%@ WebService Language="vb" CodeBehind="~/App_Code/Service.vb" Class="Service" %>


Source File: /Service.asmx Line: 1


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Fille at 2007-9-8 > top of Msdn Tech,Smart Device Development,.NET Compact Framework...