Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Protection Object Issue #15

Closed
jsny-7 opened this issue May 25, 2021 · 6 comments
Closed

App Protection Object Issue #15

jsny-7 opened this issue May 25, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@jsny-7
Copy link

jsny-7 commented May 25, 2021

It looks like there may be a issue with the when trying to load App Protection objects it gives the following error:

Cannot find an overload for "new" and the argument count: "1".

@Micke-K
Copy link
Owner

Micke-K commented May 25, 2021

"...load App Protection objects..." - Do you mean Import them, use "Load full" in detailed view or loading all of them?
I could not reproduce this error with the App Protection policies I have.
What type of App Protection policy is it?

@DanielBoule
Copy link

DanielBoule commented Jul 9, 2021

I have the same issue, the error occur when we select App protection in the menu. No app protection are list. My graph is set on the beta version.

Loading App Protection objects
Cannot find an overload for "new" and the argument count: "1".
At D:\Intune\IntuneManagement-master\Extensions\MSGraph.psm1:384 char:5

  • $ocList = [System.Collections.ObjectModel.ObservableCollection[ob ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodException
    • FullyQualifiedErrorId : MethodCountCouldNotFindBest

@Micke-K
Copy link
Owner

Micke-K commented Jul 9, 2021

Thank you for the update. That really helps troubleshooting. I might have an idea what it could be. I'll have a look at this on the weekend.

@Micke-K Micke-K added the bug Something isn't working label Jul 10, 2021
@Micke-K
Copy link
Owner

Micke-K commented Jul 10, 2021

I found the bug. This will be fixed in the next release. This will happen if there is only one App Protection policy.
Workaround for now: Create a Dummy app protection to list the objects....

@Micke-K
Copy link
Owner

Micke-K commented Jul 12, 2021

Fix uploaded. Please test and let me know how it goes

@DanielBoule
Copy link

DanielBoule commented Jul 12, 2021 via email

@Micke-K Micke-K closed this as completed Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants