ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
36 stars 4 forks source link

Apps fails to start using PWSH environment #3732

Closed ksl28 closed 1 month ago

ksl28 commented 1 month ago

Version

5.0.6

Severity

Medium

Environment

msi

Steps to Reproduce

Might be related to this - https://github.com/ironmansoftware/powershell-universal/issues/3730

Upgraded from 4.4.0 to 5.0.6

All Apps that we created in version 4.X are now failing to start. If we switch the environment to Integrated, and reboot the server (the entire server have to be restarted), then it works.

If we then switch it back to PWSH custom enviroment, then its fails.

This is the entries in the log tab:

[9/10/2024 3:22:06 AM] [Error] [App-uitest1] Inner Exception: System.IO.FileLoadException 
[9/10/2024 3:22:06 AM] [Error] [App-uitest1] Failed to get dashboard. Assembly with same name is already loaded System.Management.Automation.CmdletInvocationException 
[9/10/2024 3:22:06 AM] [Information] [App-uitest1] Creating services. 
[9/10/2024 3:22:06 AM] [Information] [App-uitest1] Dashboard information received. Starting dashboard. 
[9/10/2024 3:22:06 AM] [Information] [App-uitest1] Waiting for dashboard information... 
[9/10/2024 3:22:03 AM] [Information] [App-uitest1] Dashboard configuration complete. 
[9/10/2024 3:22:03 AM] [Error] [App-uitest1] Inner Exception: System.IO.FileLoadException 
[9/10/2024 3:22:03 AM] [Error] [App-uitest1] Failed to get dashboard. Assembly with same name is already loaded System.Management.Automation.CmdletInvocationException 
[9/10/2024 3:22:02 AM] [Information] [App-uitest1] Creating services. 
[9/10/2024 3:22:02 AM] [Information] [App-uitest1] Dashboard information received. Starting dashboard. 
[9/10/2024 3:22:02 AM] [Information] [App-uitest1] Waiting for dashboard information... ```

I cant seem to find anything else, in the event viewer, debugging logs or similar

### Expected behavior

```console
That the apps would start as in version 4.x

Actual behavior

They do no start

Additional Environment data

No response

Screenshots/Animations

No response