Share via


The underlying connection was closed: The server committed a protocol violation

Question

Friday, July 29, 2011 6:42 AM

Hi,

I have a functionality to take the database backup and upload to the specified FTP from the application.

So I have taken the backup and upload that file to FTP. Moving to FTP is taking long time since the .bak file is more than 10MB . So I have implemented this functionality using Thread Concept.

I was taken the backup and moving the file to FTP ( moving of file is in background since it was implemented in thread)

In that case sometime when I take the backup and moving to FTP am getting the "The underlying connection was closed: The server committed a protocol violation"

What was the problem ? How should I overcome this?

Suresh.

All replies (1)

Friday, July 29, 2011 6:46 AM âś…Answered

check this link

http://social.msdn.microsoft.com/forums/en-US/netfxnetcom/thread/246ffc07-1cab-44b5-b529-f1135866ebca/

http://www.bishoylabib.com/2009/04/underlying-connection-was-closed.html