03-03-2019 02:56 PM
03-03-2019 02:56 PM
when I use
PS C:\Windows\system32> Import-Module Microsoft.Online.SharePoint.PowerShell
Import-Module : Could not load type 'Microsoft.SharePoint.Administration.DesignPackageType' from assembly 'Microsoft.SharePoint.Client, Version=18.104.22.168, Culture=neutral,
At line:1 char:1
+ Import-Module Microsoft.Online.SharePoint.PowerShell
+ CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException
+ FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
I have this binary module installed:
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Binary 16.0.86... Microsoft.Online.SharePoint.Powe...
Binary 16.0.80... Microsoft.Online.SharePoint.Powe...
03-03-2019 10:59 PM
09-24-2019 01:30 AM
12-24-2019 04:46 AM
I just found this thread because I was having the same problem - thank you for these instructions @Glenn Goffin, they did the trick for me!
01-13-2020 02:26 AM - edited 01-13-2020 02:27 AM
Thx @Glenn Goffin , this one worked for me !
02-17-2020 12:46 PM
I have very same error/issue trying to load on a SharePoint 2019 server. I don't think it would be a good idea to delete all the Microsoft.SharePoint assemblies from this server. Any ideas if it will corrupt the SharePoint installation?
04-03-2020 08:13 AM
@Glenn Goffin Thanks for your help! It worked for me.
What are those assemblies for in C:\Windows\Microsoft.NET\assembly\GAC_MSIL ?
04-22-2020 09:21 AM
@Glenn Goffin I don't think direct manipulation of dlls in the GAC is the right solution here. This issue is actually caused by a conflict with SharePoint Online Components SDK. Recent versions of the Microsoft.Online.SharePoint.PowerShell module simply will not load as long as that is installed on a system. If you uninstall SharePoint Online Components, the module will load just fine.
05-12-2020 05:13 AM
would be also very interesting for me whether "clearing" the GAC destroys SharePoint Server installation.
by CptNemo on May 22, 2020
by AlvinKang on May 20, 2020
by TobiasMartin on May 20, 2020
by Adam Weldon-Ming on May 20, 2020
by Lorena Huang Liu on November 30, 2018
by Connie Woo on March 06, 2018
by Derek Snook on January 30, 2018