ASP.NET The underlying connection was closed: Could not establish trust relat
        Posted  
        
            by David Lively
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by David Lively
        
        
        
        Published on 2009-10-21T18:03:30Z
        Indexed on 
            2010/04/29
            5:37 UTC
        
        
        Read the original article
        Hit count: 404
        
When attempting to use HttpWebRequest to retrieve a page from my dev server, I get a web exception:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." The remote certificate is invalid according to the validation procedure...
The url I'm attempting to read from is a plain-old http://myserver.com/mypage.asp - no SSL. The production server has a valid certificate so this shouldn't be an issue, but our dev server doesn't.
Help!
© Stack Overflow or respective owner