WebException.TrustFailure from HttpwebRequest

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default WebException.TrustFailure from HttpwebRequest

    Hello,
    I am getting a WebException.TrustFailure when I call
    HttpwebRequest.GetResponse. Anybody has an idea how to
    resolve this issue? The code works correctly in other
    sites. I noticed that, when I browse to the site using
    IE, I am getting a security Alert messagebox prompting to
    accept the certificate. Is there a relationship between
    this two problems? How can I resolve it?

    Thanks
    -GJK
    G Joseph Guest

  2. Similar Questions and Discussions

    1. WebException while calling Web Service over HTTPS...
      I'm having an issue calling a Web Service (This is an 3rd party Web Service and I have no control/access to it) via HTTPS. We have talked to the...
    2. System.Net.WebException when calling a webservice
      I am calling a web service that takes a long time to process. In Windows 2003 Server I get a System.Net.WebException error The underlying...
    3. webexception 404
      hello all, I have a windows application that runs a webservice, namelly A, which uses sessions (i dont know if this is important). some times the...
    4. WebException, HTTP 404
      I have an application with a couple of aspx-sites in a frame.aspx, consuming two web-services. (three projects in the same solution) I install...
    5. WebException: error: (401)
      Hello ! Thanks by the aid. When I execute the place of. NET leaves the following error WebException: The remote server returned an error:...
  3. #2

    Default Re: WebException.TrustFailure from HttpwebRequest

    "G Joseph" spoke:
    > Hello,
    > I am getting a WebException.TrustFailure when I call
    > HttpwebRequest.GetResponse. Anybody has an idea how to
    > resolve this issue? The code works correctly in other
    > sites. I noticed that, when I browse to the site using
    > IE, I am getting a security Alert messagebox prompting to
    > accept the certificate. Is there a relationship between
    > this two problems? How can I resolve it?
    Yes, that's likely a problem for your code as well. It seems the
    framework's default certificate policy rejects that particular
    certificate. Check out

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-[/url]
    us/cpref/html/frlrfSystemNetServicePointManagerClassCertificateP olicyTop
    ic.asp

    Cheers,
    --
    Joerg Jooss
    [email]joerg.jooss@gmx.net[/email]
    Joerg Jooss Guest

  4. #3

    Default RE: WebException.TrustFailure from HttpwebRequest

    Hello Joseph,

    Please post here if the problem is not resolved. Thanks.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !Content-Class: urn:content-classes:message
    !From: "G Joseph" <josephgigi@hotmail.com>
    !Sender: "G Joseph" <josephgigi@hotmail.com>
    !Subject: WebException.TrustFailure from HttpwebRequest
    !Date: Sat, 19 Jul 2003 14:59:03 -0700
    !Lines: 11
    !Message-ID: <019c01c34e40$f7c915d0$a501280a@phx.gbl>
    !MIME-Version: 1.0
    !Content-Type: text/plain;
    ! charset="iso-8859-1"
    !Content-Transfer-Encoding: 7bit
    !X-Newsreader: Microsoft CDO for Windows 2000
    !X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !Thread-Index: AcNOQPfJEKecHaS1SeyTzhfQ2BoYsA==
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !Path: cpmsftngxa06.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:160529
    !NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !Hello,
    !I am getting a WebException.TrustFailure when I call
    !HttpwebRequest.GetResponse. Anybody has an idea how to
    !resolve this issue? The code works correctly in other
    !sites. I noticed that, when I browse to the site using
    !IE, I am getting a security Alert messagebox prompting to
    !accept the certificate. Is there a relationship between
    !this two problems? How can I resolve it?
    !
    !Thanks
    !-GJK
    !


    Yan-Hong Huang[MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139