Hi Fuad,
This happens due to windows and .NET update where microsoft added a method with same signature as the one we had already created within our API. The solution:
Upgrade to v10 or higher
Roll back the Windows update
Use web application project
Change code in \CMS\App_Code\CMS\UpgradeProcedure.cs:
From:
.ToDictionary(group => group.Key, group => group.Select(u => u.Email).ToHashSet(StringComparer.InvariantCultureIgnoreCase));
To:
.ToDictionary(group => group.Key, group => CMS.DataEngine.DataExtensions.ToHashSet(group.Select(u => u.Email), StringComparer.InvariantCultureIgnoreCase));