Forums

Forums / Developing Portals / Seeing these errors frequently. Can you guide what could be the reason?

Seeing these errors frequently. Can you guide what could be the reason?

5 posts, 1 answered
  1. Krishna Hari
    Krishna Hari avatar
    65 posts
    Registered:
    05 Dec 2019
    29 Apr 2021
    Link to this post
    Unexpected exception from plug-in (Execute): pavliks.PortalConnector.Plugins.PostPortalUserRoleCreate: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
    ---------------------------------------------
    Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.Create(Entity entity) at pavliks.PortalConnector.Crm.Connection.CrmDirectConnection.Do[TResult](Func`1 func) in C:\TeamCity\buildAgent\work\2c29dda7bfb4883e\pavliks.PortalConnector\Crm\Connection\CrmDirectConnection.cs:line 176 at pavliks.PortalConnector.UserManagement.PortalRoleManager.AssignCrmRole(Guid contactId, Guid portalId, String roleName) in C:\TeamCity\buildAgent\work\2c29dda7bfb4883e\pavliks.PortalConnector\UserManagement\PortalRoleManager.cs:line 120
    ---------------------------------------------
    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at pavliks.PortalConnector.ExceptionManager.CreateErrorString(Exception ex) in C:\TeamCity\buildAgent\work\2c29dda7bfb4883e\pavliks.PortalConnector\ExceptionManager.cs:line 209 at pavliks.PortalConnector.ExceptionManager.HandleError(String title, Exception ex, ErrorVerbosity verbosity, String& urlName) in C:\TeamCity\buildAgent\work\2c29dda7bfb4883e\pavliks.PortalConnector\ExceptionManager.cs:line 99 at pavliks.PortalConnector.ExceptionManager.HandleError(String title, Exception ex, ErrorVerbosity verbosity) in C:\TeamCity\buildAgent\work\2c29dda7bfb4883e\pavliks.PortalConnector\ExceptionManager.cs:line 36 at pavliks.PortalConnector.UserManagement.PortalRoleManager.AssignCrmRole(Guid contactId, Guid portalId, String roleName) in C:\TeamCity\buildAgent\work\2c29dda7bfb4883e\pavliks.PortalConnector\UserManagement\PortalRoleManager.cs:line 120 at pavliks.PortalConnector.ScheduledTasks.AssignRolesScheduledTask.ExecuteTask() in C:\TeamCity\buildAgent\work\2c29dda7bfb4883e\pavliks.PortalConnector\ScheduledTasks\AssignRolesScheduledTask.cs:line 48 at Telerik.Sitefinity.Scheduling.Scheduler.ExecuteTask(ScheduledTask task, String transactionName) at Telerik.Sitefinity.Scheduling.Scheduler.ExecuteTasks(Object[] parameters) at Telerik.Sitefinity.Services.SystemManager.RunWithElevatedPrivilege(RunWithElevatedPrivilegeDelegate delegateToRun, Object[] parameters, String urlRequest) at Telerik.Sitefinity.Scheduling.Scheduler.<>c__DisplayClass18_1.b__1(Object tmp) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch
     
  2. Josh
    Josh avatar
    47 posts
    Registered:
    01 Jun 2018
    Answered
    03 May 2021 in reply to Krishna Hari
    Link to this post

    Hello Krishna,

    This error indicates that the server was unable to establish a secure channel using SSL/TLS. There are many different possibilities of why this could occur. It is likely that the cause may be a mismatch between the version of TLS that the server hosting the Sitefinity application is using versus the version that the Dynamics server is using. I would start by verifying that both systems use the same version of TLS (preferably TLS 1.2).

    If this does not resolve your issue, please reach out to support@crmportalconnector.com as we may need to do an investigation into your environment specifically.

    Thanks,
    Josh

  3. Priyanka Sharma
    Priyanka Sharma avatar
    17 posts
    Registered:
    07 Jul 2022
    14 Apr 2023 in reply to Josh
    Link to this post
    How to check the mismatch?
  4. Rawdon Edghill
    Rawdon Edghill avatar
    76 posts
    Registered:
    16 Dec 2020
    17 Apr 2023
    Link to this post
    Hi Priyanka,

    Please see the below link for with documentation 
    https://community.progress.com/s/article/SSL-TLS-supported-versions

    I hope this information helps.

    If this does not resolve your issue, please reach out to tpcsupport@sylogist.com as we may need to do an investigation into your environment specifically.

    Regards,
    Rawdon
  5. Rawdon Edghill
    Rawdon Edghill avatar
    76 posts
    Registered:
    16 Dec 2020
    17 Apr 2023
    Link to this post
    Hi Priyanka,

    I believe this issue is caused as a result of client side server accepting TLS 1.0 protocol. In order to resolve this issue, remove TLS 1.0 and 1.1 as server-side protocols on the node(s) that are hosting the portal application.

    This can be accomplished using IIS Crypto which is a free software that can be found here:
    https://www.nartac.com/Products/IISCrypto

    Under "Server Protocols" In IIS Crypto you will disable TLS 1.0 and TLS 1.1 in favour of TLS 1.2 and SSL 2.0 and hit "Apply".

    This should resolve all of the plugin errors that are caused by the unexpected termination of the underlying connection.
5 posts, 1 answered