Update Script
 
Notifications
Clear all

Update Script

1 Posts
1 Users
0 Reactions
514 Views
Posts: 1
Topic starter
(@screentech)
New Member
Joined: 9 years ago

When I run the latest update script to update the Enterprise Server the file SolidCP.SchedulerService.exe.config is always deleted. Therefore following the update the SoldCP Scheuler service is not running. I have to copy the config file from the back into the Enterprise Server bin folder and restart the service. The powerscript shows the error you would expect after the config file is deleted (shown below). Am I doing something wrong here?

At C:UsersAdministratorDownloadsSolidCP-Auto-Upgrade.ps1:901 char:14
+ [xml]$xml = Get-Content -Path "$dFilePath"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:SolidCPEnte...vice.exe.config:String) [Get-Content], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

You cannot call a method on a null-valued expression.
At C:UsersAdministratorDownloadsSolidCP-Auto-Upgrade.ps1:929 char:3
+ $dNode = $xml.SelectNodes($dNodePath)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:UsersAdministratorDownloadsSolidCP-Auto-Upgrade.ps1:936 char:3
+ $xml.Save("$dFilePath") | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : Cannot find path 'C:SolidCPEnterprise ServerbinSolidCP.SchedulerService.exe.config' because it does
not exist.

Share: