Güvenlik açısından güvenilir yöntem 'PayPal.UserAgentHeader.get_OperatingSystemFriendlyName()' ile güvenlik açısından kritik yönteme erişmek için 'System.Management.ManagementObjectSearcher..ctor (System.String)' başarısız oldu .Güvenlik açısından kritik yönteme erişmek için güvenlik saydam yönteminin kullanılması başarısız oldu
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MethodAccessException: 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.
This stackoverflow answer sınıfa [SecuritySafeCritical]
özellik ekleyerek bahseder, ancak bu durumda oynayan sınıf Nuget üzerinden yüklenen bir DLL içindedir.
Bu özel durumu atlamak için kullanabileceğim genel ayarlar var mı?
teşekkür ederiz. Güven seviyesi zaten dolu. DLL'leri imzalayarak, bazı güvenlik duyarlı kodları değiştirerek ve bunları yeniden derleyerek bu sorunu çözdüm. PayPal SDK'larının açık kaynak olmasına ya da SOL olacağına sevindim! – Zerkey
"Güvenlikle ilgili bazı kodları nasıl değiştirirdiniz?" Şu anda bu sorunu yaşıyorum ve benim DLL'leri imzalı, güven = dolu, ve hala bunu işe alamıyorum. – antman1p