I have created a .Net app that uses the WinScp assembly to connect to a sftp server. I was able to run the code locally and connect to an sftp server but when I copy the code to my web server and trying to connect I get the following error:
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers."
Please have in mind that I can't change the configuration file of our web server since many other web apps are running there.