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

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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 :)


.



Relevant Pages