現象
次の問題が発生する可能性があります。
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 アプリケーションの web.config ファイルにコメントがあるために発生します。
解決方法
この問題を解決するには、すべての SharePoint Web アプリケーションの web.config ファイルからすべてのコメントを見つけて削除します。
詳細
さらにヘルプが必要ですか? SharePoint コミュニティにアクセスしてください。