AddIn to upload and download using Azure

Hi everyone

First of all I like to salut for this site and how is important for us [emoticon:c4563cd7d5574777a71c318021cbbcc8]

Well, I developed one addin in C# to work with azure upload and download. When I try on the console everything works fine and as the correct behavior. But when I try to use on Navision 2016 I get each time the following error:

Error: Inheritance security rules violated while overriding member: ‘Microsoft.WindowsAzure.Storage.StorageException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)’. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

I had try using

[assembly: AllowPartiallyTrustedCallers]

[assembly: SecurityRules(SecurityRuleSet.Level1, SkipVerificationInFullTrust = true]

[SecurityCritical]

But anything works. [emoticon:ca08b2c27c2f40e993e89508acf29e0b]

Can anyone have any idea to solve the problema?

Thanks in advance

Best regards