Cannot create an instance of Office365ApplicationScope - Could not load type 'Microsoft.Identity.Client

Getting the below error when trying to drag and drop Microsoft Office 365 Scope activity.
Cannot create an instance of Office365ApplicationScope
Microsoft Office 365 Scope: Could not load type ‘Microsoft.Identity.Client Version=4.32.0.0’

image

We tried changing version of MicrosoftOffice365 package. Still getting the same error.

Hi @MariaJosephina

Could you try renaming these folders with Studio closed, and then trying out with a new, blank Studio project and a freshly installed package?

%userprofile%\.nuget\packages
%localappdata%\UiPath\.cache
%localappdata%\nuget

It could be that some cache files of the packages got corrupted / outdated.