ASP.NET中具有中等信任度的PayPal核心SDK

时间:2015-02-03 18:51:26

标签: c# asp.net security paypal

最近,我们的Web托管服务提供商转移到所有共享ASP.NET站点托管的中等信任级别。因此,我们在通过PayPal的REST API完成交易时遇到了一些问题。具体来说,使用以下堆栈跟踪抛出SecurityException异常:

Attempt by security transparent method 'PayPal.UserAgentHeader.get_OperatingSystemFriendlyName()' to access security critical method 'System.Management.ManagementObjectSearcher..ctor(System.String)' failed.

Assembly 'PayPalCoreSDK, Version=1.4.1.0, Culture=neutral, PublicKeyToken=null' is partially trusted, which causes the CLR to make it entirely security transparent regardless of any transparency annotations in the assembly itself.  In order to access security critical code, this assembly must be fully trusted.

有没有人知道需要做出哪些改变?

0 个答案:

没有答案