Re: An existing connection was forcibly closed by - WeOnlyDo Discussion board

Re: An existing connection was forcibly closed by (General questions)

by tamil, Monday, December 22, 2008, 07:48 (5575 days ago) @ wodDamir

Hi Damba,

I am getting the following error When I try to use certificate in our web application.
Error is The system cannot find the file specified .
But actually file is in that location.

Code:

Dim cert As System.Security.Cryptography.X509Certificates.X509Certificate2
Dim strCertPath As String = System.Configuration.ConfigurationSettings.AppSettings.Item( CertFilePath )
cert = New System.Security.Cryptography.X509Certificates.X509Certificate2
cert.Import( C: mp0000001.p12 , ftpstest , System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.Exportable)
ftps1.Certificate = cert
ftps1.Authentication = WeOnlyDo.Client.Authentications.Both


error is on cert.Import line


Complete thread: