I had the same issue, but was able to solve it by specifying Tls 1.2.
Add this line:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
That should get you past that error.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I'm getting the below Error while connecting to Exchange Online (PowerShell Script) when called from .Net Application.
#Import-Module ExchangeOnlineManagement
#Connect-ExchangeOnline -Credential $Creds
An error occurred while sending the request.
At C:\Program
Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.4.0\netFramework\ExchangeOnlineManagement.psm1:762 char:21
+ throw $_.Exception.InnerException;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], HttpRequestException
+ FullyQualifiedErrorId : An error occurred while sending the request.
I've checked the Credentials. Updated the Exchange Online Module. Checked .Net Framework and its Compatible.
I'm using Windows PowerShell 5.1.
Policy is been set to Bypass.
Thanks & Regards
I had the same issue, but was able to solve it by specifying Tls 1.2.
Add this line:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
That should get you past that error.
Any steps to solve this issue?
We tried with registry keys for TLS, with latest updates for Exchange and Windows server.
The error was fixed temporarely, but now is back in all machines behind our customer network. So I just updated the Sonicwall, but the error persists.