Ftp over ssl
.NET (Core and Framework)
2
Posts
2
Posters
0
Views
1
Watching
-
i am not able to connect ftp using ssl.i am getting following error, The underlying connection was closed: The server committed a protocol violation. i have searched a lot but not getting any solution. please help me
By binging your error message I have found two solutions, I am not sure whether it is working or not. Just try it out... 1. Add following statement to your code
myftpRequest.EnableSsl= true;
2. Add following code to your config file.
<system.net> <settings> <httpWebRequest useUnsafeHeaderParsing="true" /> </settings> </system.net>
HTH
Jinal Desai - LIVE Experience is mother of sage....