Had something odd happen on my Test instance. I upgraded PowerShell to 7.4.6 from 7.4.5. After that I could not get any dashboard to start. All error with the following:
[12/13/2024 11:10:10 AM] [Error] [App-CertServicesStatus] Failed to get dashboard. Could not load file or assembly ‘Microsoft.IdentityServer, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified. System.Management.Automation.CmdletInvocationException
I am using OpenID Connect integration with Entra ID on the test instance (WinServer2019). My OpenID login to the admin console of PU works successfully. But I get the same error whether I have authentication turned on or not on a dashboard itself. This affected all my dashboards in this instance.
I even went so far as to completely uninstall PU, installed msi from scratch, reconfigured all my OIDC setup, modules and created a basic default dashboard. Still getting the same error. There are more lines in the debug log which I will post below.
My locally installed Dev instance works fine with POSH 7.4.6 (Win11) but it doesn’t use OIDC. Only local login.
Any ideas on what I broke? and how to fix it?
Powershell 7.4.6
Product: PowerShell Universal Version: 5.1.0
Below is the whole log entry when attempting to start the dashboard:
[12/13/2024 11:10:10 AM] [Information] [App-CertServicesStatus] Dashboard configuration complete.
[12/13/2024 11:10:10 AM] [Error] [App-CertServicesStatus] Inner Exception: System.IO.FileNotFoundException
[12/13/2024 11:10:10 AM] [Error] [App-CertServicesStatus] at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.Runspaces.Pipeline.Invoke()
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection
1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection
1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, IList
1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.InvokeT
at System.Management.Automation.Runspaces.InitialSessionState.ProcessOneModule(Runspace initializedRunspace, String name, PSModuleInfo moduleInfoToLoad, String path, HashSet1 publicCommands, List
1 processedModules)
at System.Management.Automation.Runspaces.InitialSessionState.ProcessModulesToImport(Runspace initializedRunspace, IEnumerable moduleList, String path, HashSet1 publicCommands, HashSet
1 unresolvedCmdsToExpose)
at System.Management.Automation.Runspaces.InitialSessionState.BindRunspace(Runspace initializedRunspace, PSTraceSource runspaceInitTracer)
at System.Management.Automation.Runspaces.LocalRunspace.DoOpenHelper()
at System.Management.Automation.Runspaces.LocalRunspace.OpenHelper(Boolean syncCall)
at System.Management.Automation.Runspaces.RunspaceBase.CoreOpen(Boolean syncCall)
at System.Management.Automation.Runspaces.RunspaceBase.Open()
at UniversalDashboard.Services.UDRunspaceFactory.CreateRunspace() in C:\actions-runner_work\universal\universal\src\UniversalDashboard\Services\UDRunspaceFactory.cs:line 229
at UniversalDashboard.Services.UDRunspaceFactory.Create() in C:\actions-runner_work\universal\universal\src\UniversalDashboard\Services\UDRunspaceFactory.cs:line 360
at Microsoft.Extensions.ObjectPool.DefaultObjectPool`1.Get()
at UniversalDashboard.Services.UDRunspaceFactory.GetRunspaceReference() in C:\actions-runner_work\universal\universal\src\UniversalDashboard\Services\UDRunspaceFactory.cs:line 80
at UniversalDashboard.Services.UDRunspaceFactory.GetRunspaceAsync() in C:\actions-runner_work\universal\universal\src\UniversalDashboard\Services\UDRunspaceFactory.cs:line 59
at UniversalAutomation.Host.UniversalDashboardService.StartDashboard() in C:\actions-runner_work\universal\universal\src\Host\DashboardService.cs:line 117
[12/13/2024 11:10:10 AM] [Error] [App-CertServicesStatus] Failed to get dashboard. Could not load file or assembly ‘Microsoft.IdentityServer, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified. System.Management.Automation.CmdletInvocationException
[12/13/2024 11:10:07 AM] [Information] [App-CertServicesStatus] Creating runspace factory.
[12/13/2024 11:10:07 AM] [Information] [App-CertServicesStatus] Adding built in variables.
[12/13/2024 11:10:07 AM] [Information] [App-CertServicesStatus] *
[12/13/2024 11:10:07 AM] [Information] [App-CertServicesStatus] Generating initial session state.
[12/13/2024 11:10:07 AM] [Information] [App-CertServicesStatus] Creating services.
[12/13/2024 11:10:07 AM] [Information] [App-CertServicesStatus] Dashboard information received. Starting dashboard.
[12/13/2024 11:10:07 AM] [Information] [App-CertServicesStatus] Waiting for dashboard information…