web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Email Router Configuration Works, Error because Organization.svc url is incorrect.

(0) ShareShare
ReportReport
Posted on by

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)
  • Verified answer
    Community Member Profile Picture
    on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans