Throwing OutOfMemoryException

Oct 30, 2012 at 5:07 AM

I'm getting following exception and I'm using Renci.SshNet DLL (windows) for .net 3.5, 

 Though I have a connection problem it seems that the exception is inrelevent, Please advice?  

1) Exception Information

*********************************************

Exception Type: System.OutOfMemoryException

Message: Exception of type 'System.OutOfMemoryException' was thrown.

Data: System.Collections.ListDictionaryInternal

TargetSite: Void set_Capacity(Int32)

HelpLink: NULL

Source: mscorlib

 

StackTrace Information

*********************************************

   at System.Collections.Generic.List`1.set_Capacity(Int32 value)

   at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)

   at Renci.SshNet.Session.SocketReadLine(String& response)

   at Renci.SshNet.Session.Connect()

   at Renci.SshNet.BaseClient.Connect()

   at ......Sftp.UploadFile(String FilePath, String RemotePath, String RenameOldFileName, String RenameNewFileName)