UniversalDashboard.cat missing from psgallery download. Hash mismatch

So I’ve been experiencing some weirdness while developing a dashboard, and can’t quite figure out what the issue is. I’ve been beating my head against this for a couple of days to no avail. :anger:

I have been looking at all the verbose logging to try to track down the issue.
I noticed that when downloading from PSGallery I get a message stating that the Hash for the package doesn’t match the server, and that a cat file is missing. I can’t seem to find any indication, and received no notifications that my security software plucked it, but I’m still unsure about this one.

One of the primary Errors I’m seeing relates to the Collapsible element type (below).

Now I also was testing loading the modules independently to see if I could reproduce the issue and I hit this oddball:

Color Error
MethodException: C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2
.8.1\netstandard2.0\UniversalDashboard.psm1
Line |
  22 | $TAtype::Add("DashboardColor", "UniversalDashboard.Models.DashboardColor"
)
     | ^ Cannot convert argument "type", with value:
     | "UniversalDashboard.Models.DashboardColor", for "Add" to type
     | "System.Type": "Cannot convert the
     | "UniversalDashboard.Models.DashboardColor" value of type "System.String"
     | to type "System.Type"."

But this one isn’t really what I’m trying to chase down. I’ve run Imports of the UniversalDashboard PSM1 files for both community and premium side by side and the results were… interesting (Below)
Besides the poorly encoded characters being piped out of pwsh

Community
Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard.community\2.8.1\netstandard2.0\UniversalDashboard.psm1'.





e[1;31mMethodException: e[0mC:\Program Files\WindowsPowerShell\Modules\UniversalDashboard.community\2.8.1\netstandard2.0\UniversalDashboard.psm1
e[1;36mLine |
e[1;36m  19 | e[0me[1;36m$TAtype::Add("DashboardColor", "UniversalDashboard.Models.DashboardCoe[0mlor")

e[1;31me[1;36m     | e[1;31m^ Cannot convert argument "type", with value: "UniversalDashboard.Models.DashboardColor", for "Add" to type
e[1;36m     | e[1;31m"System.Type": "Cannot convert the "UniversalDashboard.Models.DashboardColor" value of type "System.String" to
e[1;36m     | e[1;31mtype "System.Type"."
e[0m
Exporting function 'Find-Object'.
Exporting function 'Get-UDCacheData'.
Exporting function 'Get-UDContentType'.
Exporting function 'Get-UDCookie'.
Exporting function 'Get-UDSessionData'.
Exporting function 'New-UDBarChartDataset'.
Exporting function 'New-UDBarChartOptions'.
Exporting function 'New-UDCategoryChartAxis'.
Exporting function 'New-UDChartDataset'.
Exporting function 'New-UDChartLayoutOptions'.
Exporting function 'New-UDChartLegendOptions'.
Exporting function 'New-UDChartOptions'.
Exporting function 'New-UDChartTitleOptions'.
Exporting function 'New-UDChartTooltipOptions'.
Exporting function 'New-UDDoughnutChartDataset'.
Exporting function 'New-UDDoughnutChartOptions'.
Exporting function 'New-UDLinearChartAxis'.
Exporting function 'New-UDLineChartDataset'.
Exporting function 'New-UDLineChartOptions'.
Exporting function 'New-UDLogarithmicChartAxis'.
Exporting function 'New-UDPolarChartDataset'.
Exporting function 'New-UDPolarChartOptions'.
Exporting function 'New-UDRadarChartDataset'.
Exporting function 'Out-UDChartData'.
Exporting function 'Out-UDGridData'.
Exporting function 'Out-UDMonitorData'.
Exporting function 'Out-UDTableData'.
Exporting function 'Publish-UDDashboard'.
Exporting function 'Remove-UDCookie'.
Exporting function 'Set-UDCacheData'.
Exporting function 'Set-UDContentType'.
Exporting function 'Set-UDCookie'.
Exporting function 'Set-UDSessionData'.
Exporting function 'Update-UDDashboard'.
Exporting function 'Write-UDLog'.
Importing function 'Find-Object'.
Importing function 'Get-UDCacheData'.
Importing function 'Get-UDContentType'.
Importing function 'Get-UDCookie'.
Importing function 'Get-UDSessionData'.
Importing function 'New-UDBarChartDataset'.
Importing function 'New-UDBarChartOptions'.
Importing function 'New-UDCategoryChartAxis'.
Importing function 'New-UDChartDataset'.
Importing function 'New-UDChartLayoutOptions'.
Importing function 'New-UDChartLegendOptions'.
Importing function 'New-UDChartOptions'.
Importing function 'New-UDChartTitleOptions'.
Importing function 'New-UDChartTooltipOptions'.
Importing function 'New-UDDoughnutChartDataset'.
Importing function 'New-UDDoughnutChartOptions'.
Importing function 'New-UDLinearChartAxis'.
Importing function 'New-UDLineChartDataset'.
Importing function 'New-UDLineChartOptions'.
Importing function 'New-UDLogarithmicChartAxis'.
Importing function 'New-UDPolarChartDataset'.
Importing function 'New-UDPolarChartOptions'.
Importing function 'New-UDRadarChartDataset'.
Importing function 'Out-UDChartData'.
Importing function 'Out-UDGridData'.
Importing function 'Out-UDMonitorData'.
Importing function 'Out-UDTableData'.
Importing function 'Publish-UDDashboard'.
Importing function 'Remove-UDCookie'.
Importing function 'Set-UDCacheData'.
Importing function 'Set-UDContentType'.
Importing function 'Set-UDCookie'.
Importing function 'Set-UDSessionData'.
Importing function 'Update-UDDashboard'.
Importing function 'Write-UDLog'.

Premium
Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.8.1\netstandard2.0\UniversalDashboard.psm1'.

e[1;31mImport-Module: e[0mC:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.8.1\netstandard2.0\UniversalDashboard.psm1
e[1;36mLine |
e[1;36m   2 | e[0m	e[1;36mImport-Module -Name "$PSScriptRoot/netstandard2.0/UniversalDashboe[0mard.dll" | Out-Null

e[1;31me[1;36m     | e[1;31m ^ The specified module 'C:\Program
e[1;36m     | e[1;31mFiles\WindowsPowerShell\Modules\UniversalDashboard\2.8.1\netstandard2.0/netstandard2.0/UniversalDashboard.dll'
e[1;36m     | e[1;31mwas not loaded because no valid module file was found in any module directory.
e[0m

e[1;31mImport-Module: e[0mC:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.8.1\netstandard2.0\UniversalDashboard.psm1
e[1;36mLine |
e[1;36m  14 | e[0me[1;36mImport-Module (Join-Path $PSScriptRoot "UniversalDashboard.Controls.pe[0msm1")

e[1;31me[1;36m     | e[1;31m^ The specified module 'C:\Program
e[1;36m     | e[1;31mFiles\WindowsPowerShell\Modules\UniversalDashboard\2.8.1\netstandard2.0\UniversalDashboard.Controls.psm1' was
e[1;36m     | e[1;31mnot loaded because no valid module file was found in any module directory.
e[0m






e[1;31mMethodException: e[0mC:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.8.1\netstandard2.0\UniversalDashboard.psm1
e[1;36mLine |
e[1;36m  22 | e[0me[1;36m$TAtype::Add("DashboardColor", "UniversalDashboard.Models.DashboardCoe[0mlor")

e[1;31me[1;36m     | e[1;31m^ Cannot convert argument "type", with value: "UniversalDashboard.Models.DashboardColor", for "Add" to type
e[1;36m     | e[1;31m"System.Type": "Cannot convert the "UniversalDashboard.Models.DashboardColor" value of type "System.String" to
e[1;36m     | e[1;31mtype "System.Type"."
e[0m
Exporting function 'Find-Object'.
Exporting function 'Get-UDCacheData'.
Exporting function 'Get-UDContentType'.
Exporting function 'Get-UDCookie'.
Exporting function 'Get-UDSessionData'.
Exporting function 'New-UDBarChartDataset'.
Exporting function 'New-UDBarChartOptions'.
Exporting function 'New-UDCategoryChartAxis'.
Exporting function 'New-UDChartDataset'.
Exporting function 'New-UDChartLayoutOptions'.
Exporting function 'New-UDChartLegendOptions'.
Exporting function 'New-UDChartOptions'.
Exporting function 'New-UDChartTitleOptions'.
Exporting function 'New-UDChartTooltipOptions'.
Exporting function 'New-UDDoughnutChartDataset'.
Exporting function 'New-UDDoughnutChartOptions'.
Exporting function 'New-UDLinearChartAxis'.
Exporting function 'New-UDLineChartDataset'.
Exporting function 'New-UDLineChartOptions'.
Exporting function 'New-UDLogarithmicChartAxis'.
Exporting function 'New-UDPolarChartDataset'.
Exporting function 'New-UDPolarChartOptions'.
Exporting function 'New-UDRadarChartDataset'.
Exporting function 'Out-UDChartData'.
Exporting function 'Out-UDGridData'.
Exporting function 'Out-UDMonitorData'.
Exporting function 'Out-UDTableData'.
Exporting function 'Publish-UDDashboard'.
Exporting function 'Remove-UDCookie'.
Exporting function 'Set-UDCacheData'.
Exporting function 'Set-UDContentType'.
Exporting function 'Set-UDCookie'.
Exporting function 'Set-UDSessionData'.
Exporting function 'Update-UDDashboard'.
Exporting function 'Write-UDLog'.
Importing function 'Find-Object'.
Importing function 'Get-UDCacheData'.
Importing function 'Get-UDContentType'.
Importing function 'Get-UDCookie'.
Importing function 'Get-UDSessionData'.
Importing function 'New-UDBarChartDataset'.
Importing function 'New-UDBarChartOptions'.
Importing function 'New-UDCategoryChartAxis'.
Importing function 'New-UDChartDataset'.
Importing function 'New-UDChartLayoutOptions'.
Importing function 'New-UDChartLegendOptions'.
Importing function 'New-UDChartOptions'.
Importing function 'New-UDChartTitleOptions'.
Importing function 'New-UDChartTooltipOptions'.
Importing function 'New-UDDoughnutChartDataset'.
Importing function 'New-UDDoughnutChartOptions'.
Importing function 'New-UDLinearChartAxis'.
Importing function 'New-UDLineChartDataset'.
Importing function 'New-UDLineChartOptions'.
Importing function 'New-UDLogarithmicChartAxis'.
Importing function 'New-UDPolarChartDataset'.
Importing function 'New-UDPolarChartOptions'.
Importing function 'New-UDRadarChartDataset'.
Importing function 'Out-UDChartData'.
Importing function 'Out-UDGridData'.
Importing function 'Out-UDMonitorData'.
Importing function 'Out-UDTableData'.
Importing function 'Publish-UDDashboard'.
Importing function 'Remove-UDCookie'.
Importing function 'Set-UDCacheData'.
Importing function 'Set-UDContentType'.
Importing function 'Set-UDCookie'.
Importing function 'Set-UDSessionData'.
Importing function 'Update-UDDashboard'.
Importing function 'Write-UDLog'.

Interestingly, when I break into the debugger in either they are both failing on trying to import UniversalDashboard.dll

Screenshot

PSVersionTable
❯ $PSVersionTable | ft

Name                           Value
----                           -----
PSVersion                      7.0.0-rc.1
PSEdition                      Core
GitCommitId                    7.0.0-rc.1
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0