증상
다음과 같은 문제가 발생할 수 있습니다.
SharePoint 제품 구성 마법사를 사용하면 작업 8 중에 실패하고 다음 오류 메시지가 반환됩니다.
Failed to install the application content files. This is a critical task. You have to fix the failures before you can continue. An exception of type System.NullReferenceException was thrown. Additional exception information: Object reference not set to an instance of an object. To diagnose the problem, review the application event log and the configuration log file located at:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS\
그리고 PSCDiagnostics 로그 파일에 다음 오류가 기록됩니다.
Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Administration.SPAspConfigurationFile.ApplyActionToXmlDocument(XmlDocument xdAction, XmlDocument xd, String sourceFileName, SupportedXmlDocutmentActions supportedActions) at Microsoft.SharePoint.Administration.SPAspConfigurationFile.MergeWebConfig(XmlDocument xdWebConfig, String fileMask) at Microsoft.SharePoint.Administration.SPWebService.ApplyApplicationContentToLocalServer() at Microsoft.SharePoint.PostSetupConfiguration.ApplicationContentTask.Run() at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
SPWebService.ApplyApplicationContentToLocalServer 메서드를 사용하는 경우 다음 오류 메시지가 표시됩니다.
Message Title Exception calling "ApplyApplicationContentToLocalServer" with "0" argument(s): "Object reference not set to an instance of an object." At line:1 char:1 + $webservice.ApplyApplicationContentToLocalServer() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : NullReferenceException
원인
SharePoint 웹 애플리케이션의 web.config 파일에 주석이 있기 때문에 문제가 발생합니다.
해결 방법
이 문제를 resolve 모든 SharePoint 웹 애플리케이션에 대한 web.config 파일에서 모든 주석을 찾아 제거합니다.
추가 정보
아직 해결되지 않았습니까? SharePoint 커뮤니티로 이동합니다.