D
Don Miller
Greetings,
Just started with the CF during beta 2 of VS2005 and had no trouble adding a
web reference to a CF Pocket PC 2003 SE project and consuming it.
Then comes the RTM/Release version and poof! when I try on any machine (I've
tried about 5 of 'em) I get a break in Reference.cs that says "Could not
establish connection to network". I'm uising a simple hello world as a
service running on my localhost. I can connect and use the service just fine
in windows and web apps, but not in the CF. My code is simple:
private void button1_Click(object sender, EventArgs e)
{
localhost.Service svc = new DeviceApplication1.localhost.Service();
label1.Text = svc.HelloWorld();
}
The code breaks in Reference.cs at the object[] results line.
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld",
RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string HelloWorld() {
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
}
Any help?
Thanks!
don
Just started with the CF during beta 2 of VS2005 and had no trouble adding a
web reference to a CF Pocket PC 2003 SE project and consuming it.
Then comes the RTM/Release version and poof! when I try on any machine (I've
tried about 5 of 'em) I get a break in Reference.cs that says "Could not
establish connection to network". I'm uising a simple hello world as a
service running on my localhost. I can connect and use the service just fine
in windows and web apps, but not in the CF. My code is simple:
private void button1_Click(object sender, EventArgs e)
{
localhost.Service svc = new DeviceApplication1.localhost.Service();
label1.Text = svc.HelloWorld();
}
The code breaks in Reference.cs at the object[] results line.
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld",
RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string HelloWorld() {
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
}
Any help?
Thanks!
don