Problem with connect-exchangeonline

Valérie Bauche 26 Reputation points
2022-10-05T09:41:38.907+00:00

Hi

I have tested Connect-ExchangeOnline on an integration platform and it works perfectly
But when I test the same command on my production platform I get the following error :

Connect-ExchangeOnline -Credential $MyCredential -Prefix "M365"
Impossible de charger le fichier ou l'assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ou une de ses dépendances. Le fichier spécifié est introuvable.
Au caractère C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.0.0\netFramework\ExchangeOnlineManagement.psm1:726 : 21

  • throw $_.Exception.InnerException;
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : OperationStopped: (:) [], FileNotFoundException
  • FullyQualifiedErrorId : Impossible de charger le fichier ou l'assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ou une de ses dépendances. Le fichier spécifié est introuvable.

What's the problem on this platform ?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,262 questions
{count} vote

Accepted answer
  1. Andy David - MVP 142.8K Reputation points MVP
    2022-10-05T11:49:02.61+00:00

    I would upgrade to .net 4.8 and try again
    https://dotnet.microsoft.com/en-us/download/dotnet-framework


0 additional answers

Sort by: Most helpful