The remote name could not be resolved
I'm creating mobile application for windows mobile 6. I'm uploading an image on url/website. For this I'm using webrequest and webresponse class. At the time of getting response I'm getting this type of error-
The remote name could not 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();