Hello everyone,
I am trying to automate our users for o365 and I need to connect to MsolService via powershell in my .net project. But I get following error:
System.Management.Automation.CmdletInvocationException: Could not load type 'System.IdentityModel.Tokens.JwtSecurityToken' from assembly 'System.IdentityModel.Tokens.Jwt, Version=6.15.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
---> System.TypeLoadException: Could not load type 'System.IdentityModel.Tokens.JwtSecurityToken' from assembly 'System.IdentityModel.Tokens.Jwt, Version=6.15.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
at Microsoft.Online.Administration.Automation.ConnectMsolService.MsolCmdletProcessRecord()
Any help is appreciated. Thank you.