Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.27k stars 216 forks source link

'System.Xml.XmlDictionary' type not found #14

Closed Kav7 closed 3 years ago

Kav7 commented 3 years ago

Hello,

I installed the module, but after running the import command got this error:

` Unable to find type [System.Xml.XmlDictionary]. At C:\Program Files\WindowsPowerShell\Modules\AADInternals\0.6.2\AzureADConnectAPI_utils.ps1:8 char:1

NestoriSyynimaa commented 3 years ago

Which OS you're running?

Kav7 commented 3 years ago

Windows 10, 21H1

PS Version: 5.1.19041.1023

Kav7 commented 3 years ago

Interesting thing is when I run this command after importing the module it works fine without error: [System.Xml.XmlDictionary]$xml_dictionary = $null

But in a new PS session, if I try the same command it gives the same "Unable to find type [System.Xml.XmlDictionary]" error.

If I import the module twice, the second time there is no error

NestoriSyynimaa commented 3 years ago

I changed how the module is loading files so that seems to be the reason for that. I'll fix for the next release, thanks for reporting!