WPProperty에 의존하는 웹 파트가 더 이상 SharePoint Server에서 올바르게 작동하지 않을 수 있음(KB5003528)

적용 대상
SharePoint Server 2016 SharePoint Server 2019 SharePoint Foundation 2013 SP1

증상

WPProperty에 종속된 웹 파트는 더 이상 제대로 작동하지 않을 수 있으며 SharePoint ULS(통합 로깅 시스템) 로그에서 a7wm1 이벤트 태그를 생성합니다.

원인

이 문제는 SharePoint Server에서 이제 팜이 web.config 파일에서 WPProperty 에 액세스할 수 있는 .NET 형식을 선언해야 하기 때문에 발생합니다. 나열되지 않은 .NET 형식은 보안 예방 조치로 WPProperty 에 액세스할 수 없습니다.

해결 방법

이 문제를 해결하려면 다음 업데이트 중 하나를 설치하세요.

웹 파트가 예상대로 작동하도록 하려면 다음 단계를 수행하여 영향을 받는 .NET 형식을 web.config 파일에서 WPProperty 에 액세스하도록 허용된 대로 선언합니다.

중요

안전한지 확인한 후에만 .NET 형식이 WPProperty 에 액세스하도록 허용합니다.

  1. SharePoint 팜의 각 서버에서 웹 애플리케이션의 web.config 파일을 엽니다.

  2. 구성/SharePoint/SafeMode 섹션을 찾으세요.

  3. AllowedWPProperties 섹션이 아직 없는 경우 추가합니다.

  4. 형식propertyName 특성을 사용하여 WPProperty에 액세스할 수 있어야 하는 형식을 나타내는 새 AllowedWPProperty 요소를 추가합니다.

    <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="15" TotalFileDependencies="250" AllowPageLevelTrace="false">
        <AllowedWPProperties>
            <AllowedWPProperty type="<allowedWPPropertyTypeName>,<allowedWPPropertyAssemblyName>, <AssemblyVersion>, <AssemblyLanguageSetting>, <AssemblyPublicKey>" propertyName="<Allow WPProperty property name>"/>
        </AllowedWPProperties>
    </SafeMode>

  5. web.config 파일의 변경 사항을 저장합니다.

typepropertyName 특성에 대한 올바른 값을 식별하려면 a7wm1 이벤트 태그에 대한 ULS 로그를 쿼리하고 로그 항목을 기록해 둡니다. 예를 들면 다음과 같습니다.
 
"WPProperty has been blocked for security reason. blocked AssemblyQualifiedName is "<BlockedWPPropertyTypeName>, <allowedWPPropertyAssemblyName>, <AssemblyVersion>, <AssemblyLanguageSetting>, <AssemblyPublicKey>" | blocked property name is "<blocked WPProperty name>",
 
이 형식이 WPProperty에 액세스할 수 있도록 하려면 AllowedWPPProperty 형식 특성을 차단된 AssemblyQualifiedName 값으로 설정하고 propertyName 특성을 차단된 속성 이름 값으로 설정합니다.

변경 기록

다음 표에는 이 항목의 가장 중요한 변경 사항 중 일부가 요약되어 있습니다.

날짜 설명
2021년 9월 14일 "해결" 섹션에 두 가지 업데이트를 추가했습니다.