- How do i run dashboard.ps1 in powershell Core 6.1 on a windows machine with IIS
- Unable to force dashboard to run on powershell core 6.1 vs windows powershell when hosting in IIS
Has there been any movement on this? I’m currently experimenting with trying to get a dashboard running in IIS using pwsh, but I have noticed that UniversalDashboard.Server.exe seems to only use powershell.exe. There are several advantages that come with pwsh (Most of which save me from needing to write a bunch of custom code for data transformation), not to mention cross-platform compatibility.
I tried following the guidance to point the server to use the netcore dll instead of the net472 exe, but still receive the error(s) at the bottom of the page. I’m also adding the Windows Error Log Entries it produces (with necessary data scrubbed).
Potential Solution for Some Folks
It *seems* that running an IIS server with pwsh.exe as the executable...
It seems that running an IIS server with pwsh.exe as the executable, and specifying the dashboard.ps1 file as an argument works to launch a dashboard… for each session (which doesn’t work for my needs – retrieving & transforming a lot of data) however, this might work for some other people so… If you’re trying to get this working, in that manner try changing the aspNetCore line in the web.config file to match (with your install path & Logging info):
<aspNetCore processPath="C:\Program Files\PowerShell\7-preview\pwsh.exe" arguments=".\Dashboard.ps1" stdoutLogEnabled="true" stdoutLogFile="C:\TEMP\WEB_Out.log" forwardWindowsAuthToken="false" />
Windows Error Log Entries
This is the error thrown by both server.dll and server.exe
Application: universaldashboard.server.dll Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Exception at UniversalDashboard.DashboardManager.Start() at UniversalDashboard.Program.Main(System.String)
Faulting application name: universaldashboard.server.dll..
Faulting application name: universaldashboard.server.dll, version: 220.127.116.11, time stamp: 0xee577b5c Faulting module name: KERNELBASE.dll, version: 6.2.9200.22753, time stamp: 0x5ccba6bc Exception code: 0xe0434352 Fault offset: 0x000000000002c978 Faulting process id: 0x235c Faulting application start time: 0x01d5c567ffb3a0c8 Faulting application path: D:\Inetpub\VisualCronDashboard\netstandard2.0\universaldashboard.server.dll Faulting module path: C:\Windows\system32\KERNELBASE.dll Report Id: <OBFUSCATED> Faulting package full name: Faulting package-relative application ID:
Application 'MACHINE/WEBROOT/APPHOST/<OBFUSCATED>' with physical root 'D:\Inetpub\<OBFUSCATED>\' failed to start process with commandline 'D:\Inetpub\<OBFUSCATED>\netstandard2.0\universaldashboard.server.dll ', ErrorCode = '0x80004005 : e0434352.