locked
CRM 2011 Email Router - Unable to Connect to Org RRS feed

  • Question

  • Hi All,

    We've recently setup CRM 2011 accross a multiple server setup (3x App Servers, 1xDB+SSRS, 1xEmail Router).
    The application servers have been load balanced using TMG. Due to load balancing the CRMAppPool is being run as a domain account which has the required AD group membership, permissions and SPN's set. All componenets are running Update Rollup 4.

    Prior to switching on the load balance I was able to connect and configure the email router by specifiying one of the App servers in the deployment tab (e.g.http://APPSERVER01:5555/ORGNNAME), however since this has been switched on I am unable to connect from the email router via Server name or NLB Name.

    The router returns the following error:
     

    This is logged in the Event Log:

    #26234 - The E-mail Router service could not process a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider. System.ArgumentNullException: Value cannot be null.
    Parameter name: serviceConfiguration.CurrentServiceEndpoint
       at Microsoft.Xrm.Sdk.Client.ServiceProxy`1..ctor(IServiceConfiguration`1 serviceConfiguration, ClientCredentials clientCredentials)
       at Microsoft.Crm.ActiveDirectoryAuthenticationProvider`1.GetServiceProxy(Nullable`1 userId, Int32 timeout, Boolean offlinePlayback)
       at Microsoft.Crm.ServiceProxyCache`1.BuildServiceProxy(Uri serviceUrl, Credential credentials, Uri homeRealmUrl, String passportEnvironment, IServiceConfiguration`1 serviceConfiguration)
       at Microsoft.Crm.ServiceProxyCache`1.GetNewServiceProxy(Uri serviceUrl, Credential credentials, Uri homeRealmUrl, String passportEnvironment)
       at Microsoft.Crm.Tools.Email.Providers.Utility.BuildOrganizationService(Uri organizationServiceUrl, Credential credentials)
       at Microsoft.Crm.Tools.Email.Providers.Utility.GetCrmService(Uri discoveryUri, String authMode, String userName, String password)
       at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()
       at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)

    Anyone got any ideas as to what/why this might be and how to resolve?
    Cheers.

    Friday, October 7, 2011 9:31 AM

Answers

  • Managed to get round it in the end.

    Something odd with the NLB via MS TMG. - we added a host-header to each CRM Website on each of the app servers where the hostheader had the same value as the NLB value.
    We also moved the sites to port 80 and updated the relevent registry keys and areas in deployment manager.

    Once this was done, an IIS Reset on each box and we were able to connect with the email router! :)

    Monitoring the traffic with Fiddler proved that traffic was all going via the NLB.

    • Marked as answer by Oli Ward Wednesday, November 2, 2011 3:12 PM
    Wednesday, November 2, 2011 3:12 PM

All replies

  • I am having this issue as well.  Has anyone solved it?
    Wednesday, October 12, 2011 12:20 AM
  • Managed to get round it in the end.

    Something odd with the NLB via MS TMG. - we added a host-header to each CRM Website on each of the app servers where the hostheader had the same value as the NLB value.
    We also moved the sites to port 80 and updated the relevent registry keys and areas in deployment manager.

    Once this was done, an IIS Reset on each box and we were able to connect with the email router! :)

    Monitoring the traffic with Fiddler proved that traffic was all going via the NLB.

    • Marked as answer by Oli Ward Wednesday, November 2, 2011 3:12 PM
    Wednesday, November 2, 2011 3:12 PM