อาการ
บางฟังก์ชันไม่ใช้งานบนหน้า SharePoint แบบปรับแต่งเองที่ใช้ SPWorkflowDataSource หรือตัวควบคุมผู้ใช้ FabricWorkflowInstanceProvider และคุณเห็นรายการแท็กเหตุการณ์9zu4pหรือ 9zu4qในบันทึก SharePoint Unified Logging System (ULS) ปัญหานี้เกิดขึ้นหลังจากที่คุณติดตั้งการอัปเดตความปลอดภัย SharePoint ในวันที่ 9 กุมภาพันธ์ 2021 ต่อไปนี้:
สาเหตุ
กฎความปลอดภัยจะถูกปรับปรุงเมื่อคุณแปลงชนิดใน SPWorkflowDataSource และ FabricWorkflowInstanceProvider มีเพียงชนิดที่เชื่อถือได้เท่านั้นที่สามารถแปลงได้
การแก้ไข
เมื่อต้องการคืนค่าฟังก์ชันที่ใช้ไม่ได้ ให้เพิ่มชนิดที่ถูกบล็อกเป็นชนิดที่เชื่อถือได้ในWeb.configถ้าชนิดที่ถูกบล็อกปลอดภัย
To do this, add a new AllowConvertType element that has a type attribute to the Web.config file under the configuration/SharePoint/SafeMods/AllowConvertTypes elements, as follows:
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="15" TotalFileDependencies="250" AllowPageLevelTrace="false">
<AllowConvertTypes>
<AllowConvertType type="<allowedConvertTypeName>, <allowedConvertTypeAssemblyName>, <AssemblyVersion>, <AssemblyLanguageSetting>, <AssemblyPublicKey>"/>
</AllowConvertTypes>
</SafeMode>