I am running through some synchronous automated tests and quickly connecting/disconnecting from the server. Every so often I will get the exception:
2011-07-06 15:32:07,550 INFO FTPConfiguration Using UTF8 encoding
2011-07-06 15:32:07,553 ERROR FTPConnection [69] send failed
System.ArgumentException: Value does not fall within the expected range.
at L8dgb5K9LXIgtjTKjlP.NSYgDHKlHEaoYGBywwx.comWEZSmwqx(IAsyncResult )
at jLcgCCntY5u8B1UGnC4.FfMPwRngWFt9chdQOxE.RtYLFo3r3N(IAsyncResult )
2011-07-06 15:32:07,554 INFO FTPConnection [69] Closing connection
2011-07-06 15:32:07,555 WARN FTPConnection [69] Error calling Socket.BeginClose()
System.NullReferenceException: Object reference not set to an instance of an object.
at sDYDN7voLxoEgiQy8Rj.L5oYEGKzFTkdSqOlyeO.Eawqc5i4VTr(AsyncCallback , Object )
at L8dgb5K9LXIgtjTKjlP.NSYgDHKlHEaoYGBywwx.yahqguPw4UY(AsyncCallback , Object )
at L8dgb5K9LXIgtjTKjlP.NSYgDHKlHEaoYGBywwx.vqOqgt631eP(Int32 , AsyncCallback , Object )
at jLcgCCntY5u8B1UGnC4.FfMPwRngWFt9chdQOxE.Close()
2011-07-06 15:32:07,567 INFO FTPConnection [69] Closing connection
It does not always happen, and happens at random places, so it appears to be a timing issue. I can raise the debugging level if that helps.
Nelson