Re: An existing connection was forcibly closed by (General questions)
That issue occurs if we give
<identity impersonate= true /> in web.config file.
some suggestion to solve this issue. Please check the following link
http://support.microsoft.com/kb/948154
As per suggestion in the above link , I have given permission to the account for private key and modified the code like below.
Dim store As New X509Store( TrustedPeople , StoreLocation.CurrentUser)
store.Open(OpenFlags.[ReadOnly] Or OpenFlags.OpenExistingOnly)
Dim newCert As System.Security.Cryptography.X509Certificates.X509Certificate2 = store.Certificates.Find(X509FindType.FindBySubjectName, ftp.caldev2.com , False)(0)
ftps1.Certificate = newCert
But now I am getting the following error:
Failed to import private key.
If I give
ftps1.PrivateKey = newCert.PrivateKey
Error :
Keyset does not exist
Complete thread:
- An existing connection was forcibly closed by the - Tamil, 2008-12-18, 12:27
- Re: An existing connection was forcibly closed by - wodDamir, 2008-12-18, 12:48
- Re: An existing connection was forcibly closed by - tamil, 2008-12-18, 12:53
- Re: An existing connection was forcibly closed by - tamil, 2008-12-18, 12:56
- Re: An existing connection was forcibly closed by - tamil, 2008-12-18, 12:59
- Re: An existing connection was forcibly closed by - wodDamir, 2008-12-18, 13:26
- Re: An existing connection was forcibly closed by - tamil, 2008-12-19, 06:35
- Re: An existing connection was forcibly closed by - wodDamir, 2008-12-19, 08:31
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 07:48
- Re: An existing connection was forcibly closed by - woddrazen, 2008-12-22, 09:32
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 10:09
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 10:21
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 11:13
- Re: An existing connection was forcibly closed by - woddrazen, 2008-12-22, 11:45
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 12:47
- Re: An existing connection was forcibly closed by - tamil, 2008-12-29, 07:10
- Re: An existing connection was forcibly closed by - woddrazen, 2008-12-29, 09:52
- Re: An existing connection was forcibly closed by - tamil, 2008-12-29, 10:22
- Re: An existing connection was forcibly closed by - woddrazen, 2008-12-29, 11:23
- Re: An existing connection was forcibly closed by - tamil, 2008-12-29, 12:32
- Re: An existing connection was forcibly closed by - woddrazen, 2008-12-29, 15:35
- Re: An existing connection was forcibly closed by - tamil, 2008-12-29, 12:32
- Re: An existing connection was forcibly closed by - woddrazen, 2008-12-29, 11:23
- Re: An existing connection was forcibly closed by - tamil, 2008-12-29, 10:22
- Re: An existing connection was forcibly closed by - woddrazen, 2008-12-29, 09:52
- Re: An existing connection was forcibly closed by - tamil, 2008-12-29, 07:10
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 12:47
- Re: An existing connection was forcibly closed by - woddrazen, 2008-12-22, 11:45
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 11:13
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 10:21
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 10:09
- Re: An existing connection was forcibly closed by - woddrazen, 2008-12-22, 09:32
- Re: An existing connection was forcibly closed by - tamil, 2008-12-22, 07:48
- Re: An existing connection was forcibly closed by - wodDamir, 2008-12-19, 08:31
- Re: An existing connection was forcibly closed by - tamil, 2008-12-19, 06:35
- Re: An existing connection was forcibly closed by - wodDamir, 2008-12-18, 13:26
- Re: An existing connection was forcibly closed by - tamil, 2008-12-18, 12:59
- Re: An existing connection was forcibly closed by - tamil, 2008-12-18, 12:56
- Re: An existing connection was forcibly closed by - tamil, 2008-12-18, 12:53
- Re: An existing connection was forcibly closed by - wodDamir, 2008-12-18, 12:48