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

Error when starting application #21

Closed
RogerHaugen opened this issue Jul 20, 2021 · 6 comments
Closed

Error when starting application #21

RogerHaugen opened this issue Jul 20, 2021 · 6 comments

Comments

@RogerHaugen
Copy link

RogerHaugen commented Jul 20, 2021

Using MSAL file C:\IntuneManagement-master\Microsoft.Identity.Client.dll. Version: 4.29.0.0
Add-Type : Ingen tilgang til banen C:\IntuneManagement-master\CS\TokenCacheHelperEx.cs.
At C:\IntuneManagement-master\Extensions\MSALAuthentication.psm1:407 char:5
+     Add-Type -Path ($global:AppRootFolder + "\CS\TokenCacheHelperEx.c ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-Type], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.AddTypeCommand

Translation: Add-Type : Ingen tilgang til banen - No access to the filepath

All files are untouched, and i see dll file in the dir

@Micke-K
Copy link
Owner

Micke-K commented Jul 20, 2021

This suggests that the user you started the app with does not have write access to the C:\IntuneManagement-master\CS folder. Can you check the permission on the folder? Or copy the whole IntuneManagement-master to your downloads (or OneDrive) and try from there

@Micke-K
Copy link
Owner

Micke-K commented Jul 22, 2021

Did you get it to start?

@VRDRF
Copy link

VRDRF commented Jul 29, 2021

Seeing the same problem here but I seem to have found the issue, ASLR seems to not like the file:
image

@Micke-K
Copy link
Owner

Micke-K commented Jul 29, 2021

Not sure if it is the same issue. Yours is clearly an ASR issue and I expect the original error is no write access to the folder. I can reproduce that error.

I can see why ASR would see the CS file as obfuscated. It is in clear text and 95% based on code from MS. This is used when caching the the token. You could try to disable that in Settings are restart. Does that work?

@VRDRF
Copy link

VRDRF commented Jul 29, 2021

Yeah I manage to get it to work by whitelisting the location :)

@Micke-K
Copy link
Owner

Micke-K commented Aug 15, 2021

There is a fix for this in the 3.2 version. Please let me know if I can close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants