AzureADAssessment icon indicating copy to clipboard operation
AzureADAssessment copied to clipboard

Unable to find type [System.IO.Compression.ZipFile

Open Dsrygaard opened this issue 2 years ago • 2 comments

Getting this error: Unable to find type [System.IO.Compression.ZipFile

Dumps from PS:

Exporting UserReport: Completed 78,906 in 00:13:31 Loading groups in lookup cache Exporting NotificationsEmailsReport: Completed 85 in 00:00:06 Loading administrative units in lookup cache Loading applications in lookup cache Loading service principals in lookup cache Exporting RoleAssignmentReport: Completed 1,232 in 00:00:15 Exporting AppCredentialsReport: Completed 18,856 in 00:02:36 Exporting ConsentGrantReport: Completed 49,738 in 00:05:36 WARNING: The export package has not been generated WARNING: If you are working with microsoft or a provider on the assessment please warn them WARNING: Please check GitHub issues and fill a new one or reply on existing ones mentionning the errors seen WARNING: https://github.com/AzureAD/AzureADAssessment/issues Unable to find type [System.IO.Compression.ZipFile].

Any solution for this?

Dsrygaard avatar Aug 04 '22 15:08 Dsrygaard

@Dsrygaard which version are you using? can you get latest version and try Install-Module -Name AzureADAssessment -AllowPrerelease

padmavc avatar Aug 04 '22 15:08 padmavc

Solved by adding Add-Type -AssemblyName System.IO.Compression.FileSystem before running the script

Dsrygaard avatar Aug 06 '22 13:08 Dsrygaard

I found the cause for this. It was only happening on Windows PowerShell but has been fixed now.

jazuntee avatar Sep 02 '22 15:09 jazuntee