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()

asked 28 Feb '11, 09:31

Roberto%20Rossi's gravatar image

Roberto Rossi
181
accept rate: 0%

hello, i am having this same issue, can you please send me the link as well ? i should say im looking for the .NET 4.0 version not the 2.0 version... thank you !!!

(02 Jun '11, 00:59) Chad Gladue

Yes, the trial version reads the assembly location (and then the assembly itself) for the purpose of trial license key validation. We plan to change this in one of the next releases.

I sent a link to your e-mail to a trial build of Rebex SFTP that doesn't need to do this. Please give it a try and let us know whether it solves the issue!

link

answered 01 Mar '11, 11:57

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

hello, i am having this same issue, can you please send me the link as well ? i should say im looking for the .NET 4.0 version not the 2.0 version... thank you !!!

(02 Jun '11, 00:59) Chad Gladue
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×144

Asked: 28 Feb '11, 09:31

Seen: 514 times

Last updated: 11 Jun '11, 23:55