
I'm running into an issue with the email router. All the configuration and testing the deployment is successful against SMTP, however, no emails are being processed because it appears that the router is attempting to use the configuration URL https://discovery.domain.com/orgname and pre-pending that whole string into the Organization Service wsdl request, which I don't think is correct.
1. This is what's in the event viewer:
https://dev.domain.com/orgname/XrmServices/2011/Organization.svc?wsdl
2. Shouldn't the router be using?https://orgname.domain.com/XrmServices/2011/Organization.svc?wsdl
Is there some way something is misconfigured in MSCRM that would be causing this routing issue?
I can tell you that number 1 returns a 404, and number 2 returns the service.
Here's the actual stack error from the event-viewer on the machine where the router resides:
#26234 - The Email Router service could not process a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider. System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'https://dev.domain.com/orgname/XrmServices/2011/Organization.svc?wsdl'. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
--- End of inner exception stack trace ---
at Microsoft.Crm.ServiceProxyCache`1.GetNewServiceProxy(Uri serviceUrl, Credential credentials, Uri homeRealmUrl, String passportEnvironment, String onlineServiceEnvironment)
at Microsoft.Crm.Tools.Email.Providers.Utility.BuildOrganizationService(Uri organizationServiceUrl, String authMode, Credential credentials)
at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()
at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)
*This post is locked for comments
I have the same question (0)I had to follow a few steps to fix this.
1. The deployment was set to My Computer rather than "An Online Service Provider" (IFD deployment)
2. I had to run an iisreset because the next issue I ran into was the inability to get the WSDL for the discovery service specifically for each organization.