Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Ftp over ssl

Ftp over ssl

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpsysadminsecurity
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mon z
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • M mon z

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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....

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups