Accessing Amazon S3?

Discussion in 'Databases' started by JupiterDude, Jan 8, 2012.

  1. How can I access my Amazon data store from a Winhost site?

    I have a simple web site within which I'd like to read from an Amazon S3 server. All runs fine locally, but I get the following error when running at Winhost:

    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: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=...' failed.

    I've uploaded the AWSSDK.dll to the Bin folder of my site. Is this possible?
     
    Last edited by a moderator: Oct 14, 2015
  2. Did you set the Trust Level to "Full Trust"?
     
  3. No, I hadn't - and that did the trick perfectly. Many thanks!
     

Share This Page