hi,
i want to connect the emulator to the desktop, i did it using activesync and succeeded in that. i can fetch the sites and all using that, but i cant interact with the desktop pc from emulator, error in opening, it gives connnection settings not set. how can i set the connection using programmatically that is when first time my app runs it gets connected to the pc. i tried dng by proxy server settings but it is also not working.help needed.
thanx

Emulator to pc connection failed
farming
hi,
i have created the web service in asp.net. Now i want to call its utility frm my application of pocket pc.Code used for tht is :
Web_service.localhost.WebService1 myWebService = new WebService1();
WebProxy proxyObject = new WebProxy("202.88.136.233:2229", false);
myWebService.Proxy = proxyObject;
int num1 = Convert.ToInt32(txtNumber1.Text);
int num2 = Convert.ToInt32(txtNumber2.Text);
// myWebService.AllowAutoRedirect = true;
txtSum.Text = myWebService.Sum(num1, num2).ToString();
but when i run the appln i get the error "Unable to connect to remote server".
I tried to resolve also.Firewall settings off, proxy server settings in web.config also. but cant resolve the problem.Regarding the error and stack trace, status :
"WebException : Unable to connect to the remote server
\r\nStackTrace= at System.Net.HttpWebRequest.finishGetResponse()\r\n
at System.Net.HttpWebRequest.GetResponse()\r\nat System.Web.Services.Protocols.WebClientProtocol.GetWebResponse()\r\n
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse()\r\n
at System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke()\r\n
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke()\r\n
at Web_service.localhost.WebService1.Sum()\r\nat Web_service.Form1.btnSum_Click()\r\n
at System.Windows.Forms.Control.OnClick()\r\nat System.Windows.Forms.Button.OnClick()\r\n
at System.Windows.Forms.ButtonBase.WnProc()\r\nat System.Windows.Forms.Control._InternalWnProc()\r\n
at Microsoft.AGL.Forms.EVL.EnterMainLoop()\r\nat System.Windows.Forms.Application.Run()\r\n
at Web_service.Program.Main()\r\n"
Response = null
Status = ConnectFailure
Hope is would make the problem clear.
thanx for reply
JakeBree
Just a reminder: this forum is run by volunteers, answer time is anywhere from minutes to never.
In this case it probably would be close to the last one as your message is unclear and contains no useful information (no code, no description of connection, no exception type/message/stack trace, etc.) to figure out what the problem is.
Estimator
It appears you're running into infamous "localhost" issue. If you using "localhost" as a server name, that could never work. Please see link below and/or search for “localhost” issue on a forum for more info:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=315531&SiteID=1
Reko Tiira
You would like to see this blog which disucsses a "Hello World" webservice with device emulator.
-Thanks,
Mohit
hanumanth
thanx alot. problem was with the user authentications and port number. Also i followed the way described in the post. thanx alot. i really greatfull. coz of this my evry probs r solved.thanx once again.
sqlnewbee
Nobody in the forum can help me out
I posted thinking tht i would get soln.Its ok. thanks