คำถามติดแท็ก application-pool



1
จะเกิดอะไรขึ้นเมื่อฉันตั้งค่า LoadUserProfile ของ IIS pool
ฉันประสบปัญหาต่อไปนี้ ฉันเรียกใช้รหัสต่อไปนี้ var binaryData = File.ReadAllBytes(pathToPfxFile); var cert = new X509Certificate2(binaryData, password); ในสองกระบวนการ หนึ่งในกระบวนการทำงานภายใต้LOCAL_SYSTEMและมีรหัสนี้สำเร็จ อีกอันหนึ่งทำงานภายใน IIS ภายใต้บัญชีผู้ใช้ภายในซึ่งเป็นของกลุ่มโลคัล "ผู้ใช้" และที่นั่นฉันได้รับข้อยกเว้นต่อไปนี้: System.Security.Cryptography.CryptographicException Object was not found. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(Byte[] rawData, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx) at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(Byte[] rawData, Object password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password) …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.