Hi @kurisu ,
Currently, the Q&A forum only supports English Support. I suggest you translate the issue into English.
--------------------------
Translated from Translation Tool:
Sharepoint management POWERSHELL will get an ERROR at Startup.
Reinstalling doesn't help!
Import-Module: Assembly'Microsoft.SharePoint.Client.Publishing, Version = 16.0.0.0, Culture = neutral, PublicKeyToken = 7
1e9bce111e9429c':Can read the type'Microsoft.SharePoint.Client.Publishing.PortalLaunch.PortalLaunchRedirectionType'
Could not.
Location Line: 1 Character: 1
-----------------------------------
The issue is due to DLL Version mismatch. The SharePoint Online Management Shell stores the required components in "C:\Program Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell". In the location we can see a “Microsoft.Online.SharePoint.Client.Tenant.DLL” and found two different versions of file.
Please reinstalled and checked the SharePoint Online Management Module to fix this issue.
You could refer to this article to get more information:
SharePoint Online Troubleshooting: Import-Module - Could not Load Assembly (Version Issue)
Thanks,
Echo Du
——————————— Updated Answer ——————————
Hi @kurisu ,
This is due to DLL Version mismatch. To resolve the issue, follow these steps:
- Uninstall SharePoint Online Management Shell and SharePoint Online Client SDK if installed
- Delete SharePoint Online Client Assemblies from: C:\Windows\Microsoft.NET\assembly\GAC_MSIL. Remove all Folders starting with name:
Microsoft.SharePoint *
- Uninstall the module with "Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell"
- Reinstall the module "Install-Module -Name Microsoft.Online.SharePoint.PowerShell"
Thanks,
Echo Du
========================
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.