NullReferenceException avec l’Assistant Configuration des produits
Symptômes
Vous pouvez être en situation de problèmes suivants :
Lorsque vous utilisez l’Assistant Configuration SharePoint Produits, il échoue pendant la tâche 8 et renvoie le message d’erreur suivant :
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\Et l’erreur suivante est enregistrée dans le fichier journal 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()Lorsque vous utilisez la méthode SPWebService.ApplyApplicationContentToLocalServer, vous recevez le message d’erreur suivant :
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
Cause
Les problèmes se produisent parce qu’il existe des commentaires dans le web.config de l’application Web SharePoint web.
Résolution
Pour résoudre le problème, recherchez et supprimez tous les commentaires des fichiers web.config pour toutes SharePoint applications Web.
Informations supplémentaires
Encore besoin d’aide ? Accédez au site de la Communauté SharePoint.