I am trying to use the Rebex SFTP library (trial version) in the Rackspace Cloud, which works in a "modified medium trust". This is medium trust with SocketPermission and OleDbPermission and something else related to databases.
When I call the SFTP Connect method, it fails because it requires FileIOPermission, which is something is denied. Is it possible to have a version which does not require FileIOPermission?
Here's the stack trace: why do you try reading the Assembly location? Is that for licensing purposes? It just does not work.
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Reflection.Assembly.get_Location() at cfDEPv.blAlGPZ.COzXmRZ() at cfDEPv.blAlGPZ.AiWkiLZ() at Rebex.Net.Sftp.beYqct() at Rebex.Net.Sftp.Connect(String serverName, Int32 serverPort, SshParameters parameters) at Rebex.Net.Sftp.Connect(String serverName) at Antea.ECG.NetworkProtocols.SFTP.Connect()