Task applicationcontent has failed with an unknown exception

XML Error -


Task applicationcontent has failed with an unknown exception



SharePoint 2013 Product Configuration wizard Failed during the Cumulative Update installation with below error

Task applicationcontent has failed with an unknown exception
 ERR                  Exception: System.NullReferenceExceptionObject reference not set to an instance of an object.
   at Microsoft.SharePoint.Administration.SPAspConfigurationFile.ApplyActionToXmlDocument(XmlDocument xdActionXmlDocument xdString sourceFileNameSupportedXmlDocutmentActions supportedActions)
   at Microsoft.SharePoint.Administration.SPAspConfigurationFile.MergeWebConfig(XmlDocument xdWebConfigString fileMask)
   at Microsoft.SharePoint.Administration.SPWebService.ApplyApplicationContentToLocalServer()
   at Microsoft.SharePoint.PostSetupConfiguration.ApplicationContentTask.Run()

   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
Finally Microsoft Article came in to rescue saying this error caused because Web Application Web Configs are having Commented lines <!—comments --!>

When we remove the comments in Web Config  PSConfig executed successfully 

Microsoft Article

Popular posts from this blog

How to Create Host Header to SharePoint Web Application

System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission - User Profile Issue

How to add PDF Icon in SharePoint