นำไปใช้กับ
SharePoint Server 2013 SP1 SharePoint Server 2016 SharePoint Server 2019

อาการ

When third-party assemblies try to access some sensitive properties, user code might be blocked. เมื่อปัญหานี้เกิดขึ้น รายการเหตุการณ์ "8gaol" จะถูกเข้าสู่ระบบSharePoint Unified Logging System (ULS) 

สาเหตุ

เพื่อช่วยรักษาความปลอดภัย ส่วนประกอบของบริษัทอื่นจะถูกป้องกันไม่ให้เข้าถึงคุณสมบัติที่เป็นความลับบางอย่าง

การแก้ไข

เมื่อต้องการแก้ไขปัญหานี้ ให้ติดตั้งหนึ่งในการอัปเดตต่อไปนี้:

เมื่อต้องการเปิดใช้งานการแยกส่วนของบริษัทอื่นที่เชื่อถือได้เพื่อเข้าถึงคุณสมบัติที่เป็นความลับในWeb.configไฟล์ Web.configลงในรายการแอสเซมบลี

ตัวอย่างเช่น สมมติว่าคุณพบข้อความต่อไปนี้ในบันทึก ULS 

8gaol unable to access this sensitive property : <sensitive property name> from outer untrusted assembly <3rd party assembly full name>. รายการแอสเซมบลีที่เชื่อถือได้: <แอสเซมบลีของการเข้าถึงคุณสมบัติที่>

ในกรณีนี้ ให้ปฏิบัติตามขั้นตอนเหล่านี้: 

  1. เพิ่มส่วนAllowAccessSensitivePropertiesAssembliesใหม่SharePoint SafeModWeb.configไฟล์: <SharePoint>     <SafeMode>       <AllowAccessSensitivePropertiesAssemblies>       </AllowAccessSensitivePropertiesAssemblies>         </SafeMode>    </SharePoint>

  2. 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>

ต้องการความช่วยเหลือเพิ่มเติมหรือไม่

ต้องการตัวเลือกเพิ่มเติมหรือไม่

สํารวจสิทธิประโยชน์ของการสมัครใช้งาน เรียกดูหลักสูตรการฝึกอบรม เรียนรู้วิธีการรักษาความปลอดภัยอุปกรณ์ของคุณ และอื่นๆ