EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SFTP download fails - Access Denied

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
Posted: 01/26/2007 13:32:27
by Jeff McIntosh (Basic support level)
Joined: 01/26/2007
Posts: 3

I'm using the SBSimpleSftp.TElSimpleSFTPClient.DownloadFile method to retrieve a file from my SFTP server. I have this code tested and deployed to a production server where it works just fine.

Today I deployed it to a Windows XP desktop box, and when the .DownloadFile method is called, the component throws an error because "Access Denied" to C:\Downloads".

Since the code has run fine on two other machines, I don't think there's anything wrong with the code. I think it is an environmental issue on the PC where this is running. I'm wondering if you have any ideas what might be causing this.

I've checked: the 'C:\Downloads' folder exists. The user running the application has full permissions to the folder. All users have full persmissions to the folder. The user running this is even a member of the local administrators group on the PC.

What else could be causing this?

Can an antivirus package or system policy do this? The company where this is installed has a lot of controls in place to guard their systems.

Any suggestions are gratefully received.
Posted: 01/26/2007 13:36:56
by Jeff McIntosh (Basic support level)
Joined: 01/26/2007
Posts: 3

To clarify: There is a file to be downloaded, and C:\Downloads is the directory specified in the .DownloadFile method for writing the file once it is downloaded.
Posted: 01/26/2007 13:44:01
by Eugene Mayevski (EldoS Corp.)

Are you talking about .NET edition? If this is the case, check .NET permissions.

Sincerely yours
Eugene Mayevski
Posted: 01/26/2007 14:54:32
by Jeff McIntosh (Basic support level)
Joined: 01/26/2007
Posts: 3

Thanks for the quick response!

Yes, using the .NET edition of SFTPBlackbox, invoking it via C# 1.1

Can you elaborate on "check .NET permissions"?
Posted: 01/27/2007 03:25:50
by Eugene Mayevski (EldoS Corp.)

I am not an expert in .NET security, but I know that the application can run with full trust or with limited trust. In second case there are some permissions that can be adjusted. Those permissions specify what actions the applications can take. It's possible that your application doesn't have rights to write to local file systems.

Sincerely yours
Eugene Mayevski
Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.



Topic viewed 2744 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!