Could not establish trust relationship with remote server

Y

Yoel

Hello,
I have an ASP .NET Application that consuming a web services over SSL.

When invoking the client I’m getting the error:

[WebException: The underlying connection was closed: Could not establish
trust relationship with remote server.]
System.Net.HttpWebRequest.CheckFinalStatus()
System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
System.Net.HttpWebRequest.GetRequestStream()
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
emtv1.emtvAPI2.AccountProcessControllerEjb.getAccountDetailsBatch(String
string, String string0, String string1, String string2) in
c:\inetpub\wwwroot\emtv1\Web References\emtvAPI2\Reference.cs:182
emtv1.WebForm1.Button1_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\emtv1\webform1.aspx.cs:92
System.Web.UI.WebControls.Button.OnClick(EventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()


While calling other services (that hosting on the same server ) by the
browser, the process work correctly.


I'm using Framework Version:1.1

I've found many articles about this issue but the solution is not found.
Any help appreciated.
 
D

Dilip Krishnan

Hello Yoel,

Things to check.. is your certificate issued by a trusted CA? if not you
need to atleast trust the CA. Secondly you need to check if the subject name
of the cert corresponds to the server name.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top