Hi everyone.
I'm trying to configure Email Router for CRM 2015. I need to set the configuration as a POP/SMTP email sever with anonymous authentification. The server do not have a SSL certification, so I guide myself from thsi document to configurate tha each CRM's user could use individual credencial for process email:
https://technet.microsoft.com/en-us/library/dn887218.aspx
The Email Router form CRM 2015 is able to load the user data as long as the"Allow to Use Credentials for Email Processing" option is not select "yes" for any of the CRM users but in the moment that one of the user check that option, the email router throw this error every time that I try to load the data:
The E-mail Router Configuration Manager was unable to retrieve user and queue information from the Microsoft Dynamics CRM server. This may indicate that the Microsoft Dynamics CRM server is busy. Verify that URL 'url' is correct. Additionally, this problem can occur if specified access credentials are insufficient. To try again, click Load Data. (An unexpected error has occured)
Checking the Event Viewer, I find this error that it is referring to the MSCRMWebService:
The Web Service plug-in failed in OrganizationId: aa50ede5-4122-4d86-be88-6d69b085e620; SdkMessageProcessingStepId: b408db79-dd47-4ae7-85de-1a5286a59871; EntityName: email; Stage: 30; MessageName: GetDecryptionKey; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: System.InvalidCastException: Specified cast is not valid.
at Microsoft.Crm.ObjectModel.RegKeyCheckForHttpsValidationRequirements.CheckIsHttpsValidationRequired()
at Microsoft.Crm.ObjectModel.ExtraSecurityValidationForOperationsThatWorkWithSensitiveData.Validate(ExecutionContext context, IHttpsValidator httpsValidator, IHttpsValidationRequired httpsValidationRequirementChecker)
at Microsoft.Crm.Common.ObjectModel.EmailService.GetDecryptionKey(ExecutionContext context)
.
From all I can read, this is a error of a casting invalid while trying to check the HTTPS connection ( non-existed) .
For more information I try to set the CRM tracing by PowerShell but it throws this error:
Get-Setting : The remote server returned an error: (503) Server Unavailable
For the rest, CRM appears to work correctly.
Any suguestion of what can I do?