Add-Type : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information

This tutorial, we will discuss how to fix error, Add-Type : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Recently I was trying to work with PowerShell to connect to SharePoint Online. But I got the error which says: Add-Type : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Basically, we were trying to use Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll in PowerShell as below.

  • Add-Type -Path ‘E:\Bijay\Microsoft.SharePoint.Client.dll’
  • Add-Type -Path ‘E:\Bijay\Microsoft.SharePoint.Client.Runtime.dll’

But when we run the command, it gave the error like below:

Add-Type : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more
information.

Add-Type : Unable to load one or more of the requested types

The dlls were creating the problem here. So I replace the above dlls with new dlls from the 16 hive folder.

After this, you will not get the error Add-Type : Unable to load one or more of the requested types.

You may like following SharePoint PowerShell tutorials:

>