diff --git a/SolidCP/Sources/SolidCP.WebPortal/Web.config b/SolidCP/Sources/SolidCP.WebPortal/Web.config index def446074..5a3372410 100644 --- a/SolidCP/Sources/SolidCP.WebPortal/Web.config +++ b/SolidCP/Sources/SolidCP.WebPortal/Web.config @@ -11,7 +11,7 @@ - + diff --git a/SolidCP/Sources/Tools/SolidCP-Auto-Upgrade-Tool/SolidCP-Auto-Upgrade.ps1 b/SolidCP/Sources/Tools/SolidCP-Auto-Upgrade-Tool/SolidCP-Auto-Upgrade.ps1 index 34ead7f57..ba0ce29b8 100644 --- a/SolidCP/Sources/Tools/SolidCP-Auto-Upgrade-Tool/SolidCP-Auto-Upgrade.ps1 +++ b/SolidCP/Sources/Tools/SolidCP-Auto-Upgrade-Tool/SolidCP-Auto-Upgrade.ps1 @@ -17,6 +17,7 @@ v2.1.1 10th August 2020 Fix for v1.4.7 web.config version v2.2 18th August 2020 Fix for the Database not backed up, better support for the changes in v2.1 to prevent duplicates and version added to the window title. v2.2.1 23rd May 2021 Fix for v1.4.8 web.config version v2.2.2 29th January 2022 Changes for v1.4.9 web.config changes +v2.2.3 02th December 2024 Changes for v1.5.0 web.config changes Written By Marc Banyard for the SolidCP Project (c) 2016 SolidCP Updated By Trevor Robinson. @@ -642,8 +643,8 @@ function UpgradeSCPPortal() # Function to upgrade the SolidCP Portal Component ModifyXML "$SCP_Portal_Dir\web.config" "Add" "//configuration/configSections/sectionGroup[@name='system.data.dataset.serialization']" "section" @( ("name","allowedTypes"), ("type","System.Data.AllowedTypesSectionHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089") ) ModifyXML "$SCP_Portal_Dir\web.config" "Add" "//configuration" "system.data.dataset.serialization" ModifyXML "$SCP_Portal_Dir\web.config" "Add" "//configuration/system.data.dataset.serialization" "allowedTypes" - ModifyXML "$SCP_Portal_Dir\web.config" "Update" "//configuration/system.data.dataset.serialization/allowedTypes" "add" @( ("type","SolidCP.Providers.ResultObjects.HeliconApeStatus, SolidCP.Providers.Base, Version=1.4.9.0, Culture=neutral, PublicKeyToken=da8782a6fc4d0081") ) - ModifyXML "$SCP_Portal_Dir\web.config" "Add" "//configuration/system.data.dataset.serialization/allowedTypes" "add" @( ("type","SolidCP.Providers.ResultObjects.HeliconApeStatus, SolidCP.Providers.Base, Version=1.4.9.0, Culture=neutral, PublicKeyToken=da8782a6fc4d0081") ) + ModifyXML "$SCP_Portal_Dir\web.config" "Update" "//configuration/system.data.dataset.serialization/allowedTypes" "add" @( ("type","SolidCP.Providers.ResultObjects.HeliconApeStatus, SolidCP.Providers.Base, Version=1.5.0.0, Culture=neutral, PublicKeyToken=da8782a6fc4d0081") ) + ModifyXML "$SCP_Portal_Dir\web.config" "Add" "//configuration/system.data.dataset.serialization/allowedTypes" "add" @( ("type","SolidCP.Providers.ResultObjects.HeliconApeStatus, SolidCP.Providers.Base, Version=1.5.0.0, Culture=neutral, PublicKeyToken=da8782a6fc4d0081") ) # Add the edditional "" tags in the Runtime section and remove any additional charichter returns from the end of the file ((Get-Content "$SCP_Portal_Dir\web.config" -Raw) -replace ' [\r\n]+ ', " `r`n `r`n `r`n " -replace '[\r\n]+', "") | Set-Content "$SCP_Portal_Dir\web.config"