System.Exception: Exception from HRESULT: 0x80072F05 RRS feed

  • Question

  • 자신의 게시물에 투표할 수 없습니다.i found an exception in my function.

    - System.Exception: Exception from HRESULT: 0x80072F05

    i wonder that is system error? or is there any error in my function?


            private async Task<string> AsyncRequest()
                string strUserAgent = m_Head.GetUserAgent();
                string strContentType = m_Head.GetContentType();
                HTTPClientHeadAuthor Author = m_Head.GetAuthorization();

                    HttpClient Client = new HttpClient();

                    if (strUserAgent != null)
                        Client.DefaultRequestHeaders.Add("user-agent", strUserAgent);

                    if (Author != null)
                        Client.DefaultRequestHeaders.Authorization = new HttpCredentialsHeaderValue(Author.GetAuthorType(), Author.GetAuthorValue());

                    HttpStringContent Content = null;

                    if (strContentType != null && m_strPostParam != null)  
                        Content = new HttpStringContent(m_strPostParam, Windows.Storage.Streams.UnicodeEncoding.Utf8, strContentType);

                    m_CTS = new CancellationTokenSource();
                    HttpResponseMessage Response = await Client.PostAsync(new Uri(m_strURL), Content).AsTask(m_CTS.Token);
                    string strRsponse = await Response.Content.ReadAsStringAsync();
                    m_CTS = null;


                    return strRsponse;
                catch (Exception e)
                    m_CTS = null;
                    m_NotifyWriter.Write(new NotifyError(this.ToString(), "AsyncRequest::Exception - " + e.ToString()));

                    return null;


    Thursday, December 18, 2014 9:43 AM

All replies

  • That status code is a "bad date on certificate" error. Better check it.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, December 18, 2014 8:26 PM