Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Channel SLL
Message
De
06/06/2014 08:51:09
Heitor Magaldi
Dossie Sistemas
Brésil
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Titre:
Error Channel SLL
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01601406
Message ID:
01601406
Vues:
42
Hello sirs,
i have a c# application that communicate with webservice SOAP SSL(Digital Certificate Authentication), the first interaction all right, create security channel and befall XML change, however into second interaction occur:
System.Net.WebException:"The request was aborted: Could not create SSL/TLS secure channel" em System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) em System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) em System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) em NfseWSService.ConsultarSituacaoLoteRps(String nfseCabecMsg, String nfseDadosMsg)

Source code:

public string InvokeStr(object Instance, string methodName, object[] parameters)
{
//Relacionar o certificado digital que será utilizado no serviço que será consumido do webservice
Type tipoInstance = Instance.GetType();
object oClientCertificates = tipoInstance.InvokeMember("ClientCertificates", System.Reflection.BindingFlags.GetProperty, null, Instance, new Object[] { });
Type tipoClientCertificates = oClientCertificates.GetType();
tipoClientCertificates.InvokeMember("Add", System.Reflection.BindingFlags.InvokeMethod, null, oClientCertificates, new Object[] { this.oCertificado });
//Invocar método do serviço
(*******) ERROR LINE SHOWED
return (string)tipoInstance.GetMethod(methodName).Invoke(Instance, parameters);
}
P.S:
The message occur for four or more attempts, after make. With access successive the time enlarge arriving 44 attempts.

My environment:

Windows 7 Professional (64 Bits)
Visual Studio 2013 (Express 2013 for Windows Desktop)
Valid certificate and installed.
Network Proxy all right.

Somebody went by something similar?

Thanks.
Répondre
Fil
Voir

Click here to load this message in the networking platform