0 votes

I get the following error trabjando with a hotmail account and that I already have the firewall and antivirus disabled.

Limilabs.Client.ServerException: Tried to read a line. Only '' received. Please make sure that antivirus and firewall software are disabled or configured correctly. ---> System.Exception: Tried to read a line. Only '' received. ---> System.IO.IOException: No se puede escribir datos de en la conexión de transporte: Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder. ---> System.Net.Sockets.SocketException: Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder
en System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
en System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- Fin del seguimiento de la pila de la excepción interna ---
en System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
en System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
en System.Net.Security.SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
en System.Net.Security.
SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
en System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
en System.Net.Security.SslStream.Read(Byte[] buffer, Int32 offset, Int32 count)
en System.IO.Stream.ReadByte()
en   .()
--- Fin del seguimiento de la pila de la excepción interna ---
en   .()
en   .()
--- Fin del seguimiento de la pila de la excepción interna ---
en   .()
en   .(MemoryStream )
en   .()
en Limilabs.Client.IMAP.ImapResponse.(Stream )
en Limilabs.Client.IMAP.Imap.(ImapResponse )
en Limilabs.Client.IMAP.Imap.(String , Boolean )
en Limilabs.Client.IMAP.Imap.ReceiveResponse(String tag)
en Limilabs.Client.IMAP.Imap.(ImapCommand , Boolean )
en Limilabs.Client.IMAP.Imap.SendCommand(String command, Boolean throwException)
en Limilabs.Client.IMAP.Imap.(String , Object[] )
en Limilabs.Client.IMAP.Imap.GetMessageInfoByUID(SequenceSet sequence)
en Limilabs.Client.IMAP.Imap.GetMessageInfoByUID(List`1 uids)

by (300 points)

1 Answer

0 votes

In most cases this error means that the connection was interrupted. It was lost, the server disconnected or your antivirus/firewall cut the connection.

In technical terms, it means exactly what the exception’s message says: component tried to read a line (ending with CRLF), the line was expected in accordance to the protocol in use, but it has not been received during the specified period.

On extremely slow networks you may increase timeout values: ReceiveTimeout and SendTimeout.
If increasing timeout values doesn’t help, it means that the connection was dropped by the remote server or some intermediary router – you’ll need to connect again.

If you are trying to download MessageInfos for particularity large number of uids, consider breaking it in to smaller batches - maybe that is a problem for our server.

by (300k points)
...