Remote name cannot be resolved

im creating a mobile application for Windows Mobile 6.im upload an image to a url / website. I use webrequest and the webresponse class for this. When I receive the response, I m get this type of error -

The remote name cannot be resolved. my code is String url = " http://weblogs.asp.net/scottgu/rss.aspx "; System.Net.WebRequest request = System.Net.WebRequest.Create (url); request.Credentials = System.Net.CredentialCache.DefaultCredentials;

        System.Net.WebResponse response = null;
        System.IO.Stream stream = null;
        response = request.GetResponse();
        stream = response.GetResponseStream();

anyone can help me .. thanks in Advance ... Regards Pankai Wig

+3
source share
3 answers

Windows Mobile, IP-. , :

  • DNS-, . / -.
  • DNS- .

:

  • , .
  • , , DNS-,
  • DNS-, staticlly.

,

+8

, URL- - IP-. :

  • URL-,
  • DNS .

- - . , , , DNS.

+1

- . , . , ActiveSync, (, ).

Also note that your code will NOT automatically create a cellular network. You are in the connection manager until request before making your web requests.

+1
source

Source: https://habr.com/ru/post/1708941/


All Articles