อาการ
When third-party assemblies try to access some sensitive properties, user code might be blocked. เมื่อปัญหานี้เกิดขึ้น รายการเหตุการณ์ "8gaol" จะถูกเข้าสู่ระบบSharePoint Unified Logging System (ULS)
สาเหตุ
เพื่อช่วยรักษาความปลอดภัย ส่วนประกอบของบริษัทอื่นจะถูกป้องกันไม่ให้เข้าถึงคุณสมบัติที่เป็นความลับบางอย่าง
การแก้ไข
เมื่อต้องการแก้ไขปัญหานี้ ให้ติดตั้งหนึ่งในการอัปเดตต่อไปนี้:
-
อธิบายของโปรแกรมปรับปรุงความปลอดภัยSharePoint Server 2019: 10 สิงหาคม 2021 (KB5002000)
-
10 สิงหาคม 2021 การอัปเดตSharePoint Foundation 2013 (KB5002013)
เมื่อต้องการเปิดใช้งานการแยกส่วนของบริษัทอื่นที่เชื่อถือได้เพื่อเข้าถึงคุณสมบัติที่เป็นความลับในWeb.configไฟล์ Web.configลงในรายการแอสเซมบลี
ตัวอย่างเช่น สมมติว่าคุณพบข้อความต่อไปนี้ในบันทึก ULS
8gaol unable to access this sensitive property : <sensitive property name> from outer untrusted assembly <3rd party assembly full name>. รายการแอสเซมบลีที่เชื่อถือได้: <แอสเซมบลีของการเข้าถึงคุณสมบัติที่>
ในกรณีนี้ ให้ปฏิบัติตามขั้นตอนเหล่านี้:
-
เพิ่มส่วนAllowAccessSensitivePropertiesAssembliesใหม่SharePoint SafeModWeb.configไฟล์:
<SharePoint>
<SafeMode>
<AllowAccessSensitivePropertiesAssemblies>
</AllowAccessSensitivePropertiesAssemblies>
…
</SafeMode> …
</SharePoint> -
For each third-party assembly, add an entry that has an assembly full name in the AllowAccessSensitivePropertiesAssemblies section:
<AllowAccessSensitivePropertiesAssemblies>
<AllowAccessSensitivePropertiesAssembly Assembly="XXX, Version=XXX, Culture=XXX, PublicKeyToken=XXXX"/>
</AllowAccessSensitivePropertiesAssemblies>