Why does a NotFound error occur in REST services using a Windows Phone application?

I tried connecting the REST web service from a Windows Phone 8 app.

it worked for several weeks, but after it has not changed, I get this general error:

System.Net.WebException: The remote server responded with an error: NotFound.

I tried to test it using online REST. Clients and services are working fine

I tried to handle an Exception and parse it as a webException using this code:

    var we = ex.InnerException as WebException;
    if (we != null)
    {
        var resp = we.Response as HttpWebResponse;
        response.StatusCode = resp.StatusCode;

and I don't get any more information, but the final response code is: "NotFound"

Does anyone have any idea what might cause this error?

. , , DNS- , DNS- . , , , ,

Get, proberly Windwos Store:

async Task<object> GetHttps(string uri, string parRequest, Type returnType, params string[] parameters)
        {
            try
            {
                string strRequest = ConstructRequest(parRequest, parameters);
                string encodedRequest = HttpUtility.UrlEncode(strRequest);

                string requestURL = BackEndURL + uri + encodedRequest;

                HttpWebRequest request = HttpWebRequest.Create(new Uri(requestURL, UriKind.Absolute)) as HttpWebRequest;

                request.Headers["applicationName"] = AppName;
                request.Headers["applicationPassword"] = AppPassword;
                if (AppVersion > 1)
                    request.Headers["applicationVersion"] = AppVersion.ToString();
                request.Method = "GET";

                request.CookieContainer = cookieContainer;

                var factory = new TaskFactory();
                var getResponseTask = factory.FromAsync<WebResponse>(request.BeginGetResponse, request.EndGetResponse, null);
                HttpWebResponse response = await getResponseTask as HttpWebResponse;
              //  string s = response.GetResponseStream().ToString();
                if (response.StatusCode == HttpStatusCode.OK)
                {
                    XmlSerializer serializer = new XmlSerializer(returnType);
                    object obj = serializer.Deserialize(response.GetResponseStream());
                    return obj;
                }
                else
                {
                    var Instance = Activator.CreateInstance(returnType);
                    (Instance as ResponseBase).NetworkError = true;
                    (Instance as ResponseBase).StatusCode = response.StatusCode;
                    return Instance;
                }

            }
            catch (Exception ex)
            {
                return HandleException(ex, returnType);
            }
        }

, :

**

, .

**

+4
2

, . , ? NotFound. , - ? , , - /? , - , , .

, , , , , .

, .

+1

SSL ( ), , : SSL- Windows Phone OS 7.1.

, SSL- , HTTPS- .

, Root CA.

+1

All Articles