Discussion:
Could not establish trust relationship for the SSL/TLS secure chan
(too old to reply)
Kathryn Verdoorn
2009-07-09 14:53:01 UTC
Permalink
I have a web service in .NET 3.5. I have created a web reference to
https://staging.mappoint.net/secure-30/mappoint.wsdl. When my managed c#
application calls the function in my webservice, the following code is
executed:
---
MobilePhotographyWebService.MapPointService.FindServiceSoap findService =
new MobilePhotographyWebService.MapPointService.FindServiceSoap();
findService.PreAuthenticate = true;
findService.Credentials = new System.Net.NetworkCredential(<user>,
<password>);
findService.Url =
"https://staging.mappoint.net/secure-30/mappoint.wsdl";

MobilePhotographyWebService.MapPointService.FindSpecification
findSpec = new
MobilePhotographyWebService.MapPointService.FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = fromAddress.Street + ", " + fromAddress.City +
", " + fromAddress.State + " " + fromAddress.Zip;
MobilePhotographyWebService.MapPointService.FindResults startResult
= findService.Find(findSpec);
---
When the last statement executes, I receive the following error:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.Net.WebException: The underlying connection was closed:
Could not establish trust relationship for the SSL/TLS secure channel. --->
System.Security.Authentication.AuthenticationException: The remote
certificate is invalid according to the validation procedure.

I have been scouring the web for the past couple of days. I have tried
importing the certificate into every possible "trust" area and still can't
get past this. Has anyone else had this problem????? We want to use the
secure one in production so switching to the standard wsdl is not an option.
Plus, it throws a 405 error on the same line...
Derek Chan
2009-07-27 02:32:01 UTC
Permalink
Hi,

I never encountered this problem but it seems your looking in the right
direction. Have you tried any of the solutions on these links?

http://www.eggheadcafe.com/aspnet_answers/NETFrameworkASPNETWebServices/May2006/post26839888.asp

http://forums.asp.net/t/905382.aspx

Also, do you have any issues using the regular http version or does this
only happen over https?

Regards,
--
Infusion Development
http://www.infusion.com
Post by Kathryn Verdoorn
I have a web service in .NET 3.5. I have created a web reference to
https://staging.mappoint.net/secure-30/mappoint.wsdl. When my managed c#
application calls the function in my webservice, the following code is
---
MobilePhotographyWebService.MapPointService.FindServiceSoap findService =
new MobilePhotographyWebService.MapPointService.FindServiceSoap();
findService.PreAuthenticate = true;
findService.Credentials = new System.Net.NetworkCredential(<user>,
<password>);
findService.Url =
"https://staging.mappoint.net/secure-30/mappoint.wsdl";
MobilePhotographyWebService.MapPointService.FindSpecification
findSpec = new
MobilePhotographyWebService.MapPointService.FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = fromAddress.Street + ", " + fromAddress.City +
", " + fromAddress.State + " " + fromAddress.Zip;
MobilePhotographyWebService.MapPointService.FindResults startResult
= findService.Find(findSpec);
---
System.Web.Services.Protocols.SoapException: Server was unable to process
Could not establish trust relationship for the SSL/TLS secure channel. --->
System.Security.Authentication.AuthenticationException: The remote
certificate is invalid according to the validation procedure.
I have been scouring the web for the past couple of days. I have tried
importing the certificate into every possible "trust" area and still can't
get past this. Has anyone else had this problem????? We want to use the
secure one in production so switching to the standard wsdl is not an option.
Plus, it throws a 405 error on the same line...
Loading...