Asked by:
MSCRMWebService error / Email Router configure

Question
-
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 UnavailableFor the rest, CRM appears to work correctly.
Any suguestion of what can I do?
- Edited by Joel Depablos Tuesday, September 29, 2015 4:24 PM better view
Tuesday, September 29, 2015 4:23 PM
All replies
-
Did you set your deployment to use the Email Router instead of Server side synchronization? Check the Email tab of System Settings.
And also to use the Email Router on the user mailbox records?
Tuesday, September 29, 2015 10:27 PMModerator -
yes, in the system configure of CRM is set to use the Email Router synchronization, also in each user account. the mailbox profile for POP/SMTP is aslo setThursday, October 1, 2015 1:29 PM
-
Hmm, I think you need either to engage with Microsoft support or to engage with someone to work with you on your system. I think the problem is too difficult to resolve via this forum.Friday, October 2, 2015 4:43 PMModerator