I get the 502.5 error as I said
In looking at the event logs I see
Application ‘MACHINE/WEBROOT/APPHOST/UDDASHBOARD’ with physical root ‘C:\inetpub\wwwroot’ failed to start process with commandline '.\net472\universaldashboard.server.exe ', ErrorCode = '0x80070002 : 0.
My dashboard.ps1 file is:
Start-UDDashboard -Wait -Dashboard (
New-UDDashboard -Title “Hello, IIS” -Content {
New-UDCard -Title “Hello, IIS”
}
)
I setup a new local user with admin rights and assigned that user to the app pool I am using for the website.
I have
.net framework 4.7.2 SDK
.net core runtime 2.1.5
.net core sdk 3.0.101
Here’s what I get
C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.7.0\net472>UniversalDashboard.server.exe
Starting Universal Dashboard service.
Dashboard Script: C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.7.0\net472…\dashboard.ps1
Assembly Base Path: C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.7.0\net472…\dashboard.ps1
Error starting dashboard:
The term ‘C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.7.0\net472…\dashboard.ps1’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
at , : line 1
Unhandled Exception: System.Exception: Failed to start dashboard
at UniversalDashboard.DashboardManager.Start()
at UniversalDashboard.Program.Main(String[] args)
The problem is propably the name of your “Home” page.
If UD does not have a page called “Home” it gives this error. There is New-UDPage -DefaultHomePage but I’m not sure this will solve your problem.
I see 2 solutions;
name your page “Home” instead of “Machine Parameters”
provide a second page called “Home” with other info.