Universal Version: 1.2.8 (running from IIS)
UD 2.9.1-Beta5
Cannot import module, example I have tried many methods including running (Import-Module “C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard.Style\1.0.0\UniversalDashboard.Style.psd1” -Scope Global ) before New-UdDashboard, or inside New-UdDashboard -Content {} and at the top of the page ps1 but I get ‘Component not registered: ud-style’ (this always worked prior to Universal)
When I select PowerShell version 5x it processes the request then runs on pwsh, if I change it in settings it reverts to pwsh still.
Thanks - the potential for Universal is amazing, maybe im trying to run before i can walk a little! Is there any further documentation on how endpoints work, as they are automatically recognised how can i trigger them on a schedule?
IIS does have access to program files, and have tried moving the modules to another location and i still cannot import them, this is running on pwsh, when running natively on the server it imports in pwsh…
Log:
[07-13-20 02:05:33 PM] Dashboard configuration complete.
[07-13-20 02:06:49 PM] PS: One or more errors occurred. (Cannot overwrite variable null because it is read-only or constant.) (Cannot overwrite variable null because it is read-only or constant.)
Also, i cant seem to get Publish-UdFolder to work (again 2.9, PSU, pwsh)…
[07-14-20 11:42:32 AM] Startup: The term ‘Publish-UDFolder’ 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.
This is good in a way because now there is a signal to the dashboard that its legs have been pulled away from it (something that was missing before). I wonder if its possible to use this information to divert to another website, or trigger a timeout?
Sounds really good, thanks Adam for the bug fix, and the UDFolder in 1.3 - i did try the nightly for 1.3 but PSU would not load so i rolled back, must admit i didnt put a lot of effort into it.
Session timeout is one of the key items for me, if its possible for a redirect (to a seperate URL) that would be very helpful.
I have had a bit of a muppet moment today where i was upgrading but forgetting to change the dashboard settings inside PSU and it modules still were not working, then changed the settings and it does work in 1.2.9 and 1.3.0nightly…
Publish-UDFolder still does not work in the 1.3.0 Tuesday night release though…
I have to say, it is now SO easy to upgrade UD/PSU and change versions of the dashboards - really good work!!
Yes that worked a treat. And again, a lot easier to work through than previously.
Next topic! i keep getting 'One or more errors occurred. (Cannot overwrite variable null because it is read-only or constant.) (Cannot overwrite variable null because it is read-only or constant.) ’ in my logs, and there is nowhere that i try and set $null to a value (i do use $null a lot to cancel out variables). I noticed you had also seen this here when debugging: Not sure how to start developing in PSU however i cannot see why, even when trying to debug… any thoughts?
@adam - Looking through the code for my dashboard i have some endpoints which lookup variables with filters. These filters are causing some logging that seems to be causing me some confusion.
Log:
[07-23-20 12:30:04 PM] [DBG] Creating endpoint: ScheduleEndpoint10Min
[07-23-20 12:30:04 PM] [DBG] Found variable: Cache:testobject
[07-23-20 12:30:04 PM] [DBG] Not setting variable Cache:testobject. -
[07-23-20 12:30:04 PM] [DBG] Found variable: Cache:testobject
[07-23-20 12:30:04 PM] [DBG] Not setting variable Cache:testobject. -
[07-23-20 12:30:04 PM] [DBG] Found variable: _
[07-23-20 12:30:04 PM] [DBG] Not setting variable _. -
[07-23-20 12:30:04 PM] [DBG] Found variable: Cache:testobject
[07-23-20 12:30:04 PM] [DBG] Not setting variable Cache:testobject. -
[07-23-20 12:30:04 PM] [DBG] Found variable: Cache:testobject
[07-23-20 12:30:04 PM] [DBG] Not setting variable Cache:testobject. -
[07-23-20 12:30:04 PM] [DBG] Found variable: null
[07-23-20 12:30:04 PM] [DBG] Setting variable null value:
[07-23-20 12:30:04 PM] [DBG] Found variable in endpoint AST: PSScriptRoot
Should i be concerned that PSU has 'Found variable: _ ’ and ‘Setting variable null value:’
Im wondering if this is resulting in this line at the end:
[07-23-20 12:30:04 PM] PS: One or more errors occurred. (Cannot overwrite variable null because it is read-only or constant.) (Cannot overwrite variable null because it is read-only or constant.)
Hi Adam, I know you are busy but did you get anywhere with this hook for session timeout? this would be very useful!
Also following up on the null variable, i wonder if you have managed to take a look as to why this is happening - I am on 1.3.0 full release now and these errors persist.