Hi All,
We have a C#.net application (developed in Framework v4.0) which uses System.Management.Automation to connect to Office365 and modify CAS Settings of some mailboxes using the Set-CASMailBox cmd.
Below is the code for creating runspace:
In the above code variable values are set from config file as below:
shellURI = "http://schemas.microsoft.com/powershell/Microsoft.Exchange";
psUserName, securePassword --> Exchange admin account having Recipient Management Role
AuthenticationMechanismToUse() returns Basic Authentication
This has been working fine for the past 1.5 years. However, just recently the line runspace.Open(); is throwing the below exception:
Encountered an internal error in the SSL library. For more information, see the about_Remote_Troubleshooting Help topic.
This executable is configured to run with an Exchange admin account having Recipient Management Role.
On the same machine, if user tries to connect to Office365 using powershell commands, Powershell also throws the same error:
However, able to connect to O365 through powershell from any other machine.
Can someone highlight what can be the cause of this issue and its possible resolution?
Thanks & Regards,
Wasim Shaikh