Network Management
Orion Website optimization failed
The article discusses how to address the issue when the Configuration Wizard completed successfully but threw an error at the end about Website Configuration.
First published date
Last published date
Overview
Scenario 1:
When upgrading or migrating the SolarWinds Orion server, the website optimization part may fail and generate the error message:
Scenario 2:
During upgrade from Orion Platform 2019.4 Hotfix 5 to Orion Platform 2020.2.1In this case, the Configuration Wizard completes fine on the Main poller without the above error, and the Orion Web Console was accessible from the Main poller URL.
But the Configuration Wizard failed with the same error above on all (4) Additional Web Servers (AWS), and the customer was unable to access the Orion Web Console from the AWS URL. The Orion Web Console throws the following error from all AWS servers URLs,
Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.and the following error message in the ConfiguratonWizard.log (C:\ProgramData\SolarWinds\Logs\Orion)
ERROR OptimizeWebsite.Program - Error: Compilation failed - more information in log file DEBUG OptimizeWebsite.Program - Error Details: System.InvalidOperationException: Compilation failed - more information in log file at OptimizeWebsite.WebsiteCompiler.CompileWebsite(String websiteFolder) at OptimizeWebsite.WebsiteOptimizer.Start() at OptimizeWebsite.Program.Main(String[] args)
Scenario 3:
Post upgrade from 2020.2.6 HF1 to 2020.2.6 HF2 , following error was noted in the OptimizeWebsite.log (C:\ProgramData\SolarWinds\Logs\Orion)on Primary main poller. Same error was not seen on Standby Main poller, which indicates an Environmental problem on the Active main poller.
Could not load file or assembly Microsoft.Web.Infrastructure Version=1.x.x.x
Product section
Cause
- Custom IIS code
- C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ was not cleaned up properly during the upgrade even we have a task for it that was successfully executed as per CORE-15743
- Running Antivirus on the system
- Corrupted Core installation
Resolution
- Backup the file C:\Program Files (x86)\SolarWinds\Orion\ConfigurationWizard.exe.config
- Open C:\Program Files (x86)\SolarWinds\Orion\ConfigurationWizard.exe.config in Notepad and change the value below to "true":
add key="DisableWebsiteOptimization" value="false" - Re-run the Configuration Wizard.
- Run permission checker
- Repair Orion Core services