473,503 Members | 3,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 :)
Nov 17 '05 #1
3 9585
Randy:

Is your VPN using SSL?

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

This response is supplied "as is" without any representations or warranties.
"Randy" <te**@temp.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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 :)

Nov 17 '05 #2
"Randy" <te**@temp.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I get an exception which is...

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


Could it be :

http://support.microsoft.com/default...b;en-us;823177

Stephen
Nov 17 '05 #3
I'm not sure...I'm checking...
"David Lloyd" <Da***@NoSpamPlease.com> wrote in message
news:P9****************@bignews4.bellsouth.net...
Randy:

Is your VPN using SSL?

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

This response is supplied "as is" without any representations or
warranties.
"Randy" <te**@temp.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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 :)

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3233
by: Olex Malko | last post by:
I have a library that reads web page and returns it like a string. I use "WebRequest" class to get text of page from "https://..." URI. I set credentials and proxy. Everything works fine and...
1
6054
by: C.W. | last post by:
I am trying to connect to a remote server in order to perform an http post inside my asp.net page. However, I consistently get the following error: System.Net.Sockets.Socket.Receive(Byte...
26
16455
by: Rajeev Tipnis | last post by:
http://support.microsoft.com/default.aspx?scid=kb;en- us;819450 Questions: 1) Is this patch (fix) applicable to the .NET 1.1 Framework as well? That is, if we have Framework 1.1 (On...
1
9701
by: Rob Thompson | last post by:
Hi, We are using web services that are secured using SSL, everything works fine, but every now and then we get an error: >>START<< System.Net.WebException: The underlying connection was...
4
20468
by: Matthew.DelVecchio | last post by:
hello, i am developing an ASP.NET web app that consumes a 3rd party vendor webservice. it is my first one so while ive done my homework, im not an expert on the matter. our partner's...
3
4052
by: Rahul Anand | last post by:
As per our requirements we have a web service which internally connects (Simple HTTP Post Request) to a remote server to initiate some work. We are calling the web service method asynchronously...
5
23978
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
3
2085
by: Monty | last post by:
OK, I had an issue with this and found lots of advice that did not apply, so I'm posting what I found hoping it might help someone else. Here's the sitch: you have a COM app that calls to a .Net...
4
21616
by: Joel Barsotti | last post by:
I'm working on shipping rate calculator going back and forth via XML. The thing I'm confused about is that the code works, but after a few hours and I don't know how many requests, I start getting...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.