in

ASP.NET Weblogs

rbfigueira.net

All about .net stuff, Compact framework, framework.net and personal projects.

Unable to connect to the remote server - (compact Framework)

I am creating one Pocket PC application and i have one problem ... i work with one firewall !

I have created the pocket PC app on my local machine (using VS.Net 2003).
When I run it in debug mode (using the Pocket PC 2002 emulator), and click on a button which calls that part, the following error message appears:

"Unable to connect to the remote server "

I get this error one the line (11):

Line 10 : HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(_url);
Line 11 : WebResponse resp = wr.GetResponse();
Line 12 : Stream stream = resp.GetResponseStream();

Do I need to set the internet setting on the emulator?
Any thoughts guys?

Published Aug 13 2003, 04:40 PM by rbfigueira
Filed under:

Comments

 

JesseEzell said:

http://msdn.microsoft.com/newsgroups/loadframes.asp?icp=msdn&slcid=us&newsgroup=microsoft.public.dotnet.framework.compactframework
August 13, 2003 12:06 PM
 

Sreedhar said:

Don't use local host for webservice URL, use machine name, if you are consuming in CF from local machine!!
It's my thought ; )
August 13, 2003 5:48 PM
 

Jim said:

Sreehar:

I was having this same problem (same error message) after downloading and setting up a demo program which used a web service to connect to a remote SQL Server database. I was using "http://localhost/TitlesWS/service1.asmx" as the URL of the web service. I changed "localhost" to my local machine name and my demo program worked.

Your advice makes sense. Many thanks.
April 1, 2004 12:40 PM
 

Su said:

I was having some problem about connect
Please tell me about Remote Data Access(RDA) ,RDA connect? between PC and Pocket PC
June 9, 2004 12:00 AM
 

sridhar said:

hi sreehar,
i also faced the same problem. but till now i didn't get the result. the same error has occured. would u tell me clearly where the webservices is to store, and where the client is to store. What u changed to localhost. please kindly send ur suggestions.


June 22, 2004 7:30 AM

Leave a Comment

(required)  
(optional)
(required)  
Add