The underlying connection was closed: Could not establish trust relationship with remote server

  • Thread starter Thread starter Randy
  • Start date Start date
R

Randy

Hello,
I've got a Windows client app which hits a web service. The web service
works fine unless I'm outside the firewall using a VPN connection. I know my
VPN connection is working fine because I can ping machines and hit web pages
on the internal network.
With my VPN connection up and running when I try and hit the web service
through C# with a...

stream = new StringReader(webSrv.MyService(query));

I get an exception which is...

"The underlying connection was closed: Could not establish trust
relationship with remote server."

Does anyone know what might be causing this problem?

Thanks to All :)
 
Randy:

Is your VPN using SSL?

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


Hello,
I've got a Windows client app which hits a web service. The web service
works fine unless I'm outside the firewall using a VPN connection. I know my
VPN connection is working fine because I can ping machines and hit web pages
on the internal network.
With my VPN connection up and running when I try and hit the web service
through C# with a...

stream = new StringReader(webSrv.MyService(query));

I get an exception which is...

"The underlying connection was closed: Could not establish trust
relationship with remote server."

Does anyone know what might be causing this problem?

Thanks to All :)
 
Back
Top