Intune-Device-Troubleshooter icon indicating copy to clipboard operation
Intune-Device-Troubleshooter copied to clipboard

UI not working

Open gtkkj opened this issue 2 years ago • 5 comments

When I start the script I get a lot of these errors:

  • $WPFDataGridAllDevices.ItemsSource = $items
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

The property 'Content' cannot be found on this object. Verify that the property exists and can be set. At C:\Users\ex1549\OneDrive - Alm. Brand A S\Downloads\Intune-Device-Troubleshooter-main\modules\deviceView.psm1:83 cha r:37

  • $WPFLabelCountDevices.Content = "$($items.count) Devices"
    
  •                                    ~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

And then the UI pops up, but without any icons or data.

gtkkj avatar Aug 11 '22 12:08 gtkkj

I am having this same issue. Is there a way to resolve it?

DGMalcom avatar Nov 09 '22 17:11 DGMalcom

I have the same error. anyone can help ? The property 'Content' cannot be found on this object. Verify that the property exists and can be set. At C:\Users\abc\Documents\Intune-Device-Troubleshooter-main\Intune-Device-Troubleshooter-main\modules\ut ility.psm1:122 char:3

  • $WPFLableTenant.Content = $org.DisplayName
  • + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound
    
    

The property 'ItemsSource' cannot be found on this object. Verify that the property exists and can be set. At C:\Users\abc\Documents\Intune-Device-Troubleshooter-main\Intune-Device-Troubleshooter-main\modules\de viceView.psm1:82 char:2

  • $WPFDataGridAllDevices.ItemsSource = $items
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

The property 'Content' cannot be found on this object. Verify that the property exists and can be set. At C:\Users\abc\Documents\Intune-Device-Troubleshooter-main\Intune-Device-Troubleshooter-main\modules\de viceView.psm1:83 char:37

  • $WPFLabelCountDevices.Content = "$($items.count) Devices"
    
  •                                    ~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

besthyde avatar Feb 08 '23 14:02 besthyde

Hi I will try to reproduce and fix this. Will came back to you

JayRHa avatar Feb 08 '23 17:02 JayRHa

Hi, same issue for me too, here a part of the errors when launching the script:

Add-XamlEvent : Cannot bind argument to parameter 'object' because it is null.
At C:\Users\xxx\Downloads\Intune\Intune-Device-Troubleshooter\modules\uiHandler.psm1:47 char:27
+     Add-XamlEvent -object $WPFButtonRestartDevices -event "Add_Click" ...
+                           ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Add-XamlEvent], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-XamlEvent

Add-XamlEvent : Cannot bind argument to parameter 'object' because it is null.
At C:\Users\xxx\Downloads\Intune\Intune-Device-Troubleshooter\modules\uiHandler.psm1:51 char:27
+     Add-XamlEvent -object $WPFButtonShutdownDevices -event "Add_Click ...
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Add-XamlEvent], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-XamlEvent

Add-XamlEvent : Cannot bind argument to parameter 'object' because it is null.
At C:\Users\xxx\Downloads\Intune\Intune-Device-Troubleshooter\modules\uiHandler.psm1:57 char:27
+     Add-XamlEvent -object $WPFButtonRefreshRemediations -event "Add_C ...
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Add-XamlEvent], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-XamlEvent

Add-XamlEvent : Cannot bind argument to parameter 'object' because it is null.
At C:\Users\xxx\Downloads\Intune\Intune-Device-Troubleshooter\modules\uiHandler.psm1:58 char:27
+     Add-XamlEvent -object $WPFButtonRunRemediations -event "Add_Click ...
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Add-XamlEvent], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-XamlEvent

------------------------------------------------------

Unfortunatelly I'm not great at powershell, did you have any chance to look into the problem @JayRHa ?

thanks!

hmorandell avatar Jun 23 '23 08:06 hmorandell

Same problem for me. Any advice?

ingo-aware avatar Sep 22 '23 08:09 ingo-aware