Wednesday, April 11, 2012 6:58 PM
My CRM Mail Router stop working!
It was running during last month, but today I realized that mails are not sending. I suspect that I need to change the password of special Office 365 user that I am using for Mail Router. I reset his password and I am able successfully login to Outlook web access. As well I can open other users mailboxes with this user.
I changed the password in Mail Router Configuration Manager, published, loaded deployment data but when I am trying Test Access I am getting:
Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(401) Unauthorized". Verify that you have permission to connect to the mailbox. The request failed with HTTP status 401: Unauthorized.
Server: https://podXXXXX.outlook.com/ews/exchange.asmx (email@example.com)
Outgoing Status: Failure - An error occurred while checking the connection to e-mail server https://podXXXXX.outlook.com/ews/exchange.asmx. The request failed with HTTP status 401: Unauthorized.
In the Application Event log I found following events:
Fault bucket , type 0
Event Name: CRMmanaged
Response: Not available
Cab Id: 0
P4: Object reference not set to an instance of an object.;Hash='1347396225'
These files may be available here:
Rechecking for solution: 0
Report Id: 22f57bb3-8406-11e1-9154-00155d016918
Report Status: 4
#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.ExchangeOnlinePollingSendEmailProvider. System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.HandleProcessMessageError(Exception exception, Entity emailMessage)
at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)
#61042 - An error occurred while processing the outgoing e-mail message with subject "An Opportunity has been Won - Please Send Licenses CRM:0018179" for ExchangeOnline: https://dev.crm.dynamics.com/crmXXXXX for delivery through https://podXXXXX.outlook.com/ews/exchange.asmx. System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object parameters)
at Microsoft.Crm.Tools.Email.Providers.ExchangeServiceBinding.CreateItem(CreateItemType CreateItem1)
at Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider.SendMessage(MessageType mailMessage)
at Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider.ProcessMessageInternal(Entity emailMessage)
Any help will be appreciated!
Wednesday, May 02, 2012 9:35 AM
have you found a solution for this? We are having the same situation.
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.ExchangeOnlinePollingSendEmailProvider. System.NullReferenceException: Object reference not set to an instance of an object.
It used to work ok, but since today we are not able to send emails.
- Proposed As Answer by Nilank Wednesday, May 02, 2012 1:34 PM
Wednesday, May 02, 2012 1:37 PM
I'm also facing the same problem since couple of days. While checking for solution, I landed up on this link:
Got the ticket raised with MS and requested for the hotfix CRM2011-Router-KB2702300-ENU-amd64, but no success yet.
Thursday, June 07, 2012 8:35 AM
I have quite the same problem, but with CRM 4.0 on premises? It worked fine since several month,and stopped a couple days ago.
Help would be welcome.
email router status when testing:
Nom : xxxxxxx
Statut en entrée : Échec - Le serveur de messagerie distant Microsoft Exchange a renvoyé l'erreur « (401) Non autorisé ». Vérifiez que vous êtes autorisé à vous connecter à la boîte aux lettres. La demande a échoué avec l'état HTTP 401 : Unauthorized.
Serveur : https://db3prd0410.outlook.com/ews/exchange.asmx (firstname.lastname@example.org)
Statut en sortie : Échec - Une erreur s'est produite au cours de la vérification de la connexion au serveur de messagerie https://db3prd0410.outlook.com/ews/exchange.asmx. La demande a échoué avec l'état HTTP 401 : Unauthorized.
Monday, July 23, 2012 8:54 AM
same problem here, crm 4.0 router RU 21 office 365 rights are good.
it was working fine, but i guess microsoft har changed something.. crap!
can i get KB2702300 for crm 4.0 router?
Saturday, July 28, 2012 12:10 PMModerator
Just went through the pain of troubleshooting the same problem. For Outbound switching from ExchangeOnline to smtp worked for me.
Make sure TLS is ticked, port is 587 on second tab and get correct smtp server:To obtain SMTP settings information, follow these steps:
- Sign in to Outlook Web App.
- Click Options, and then click See All Options.
- Click Account, click My Account, and then in the Account Information area, click Settings for POP, IMAP, and SMTP access.
Note the SMTP settings information that is displayed on this page.
George Doubinski, MVP http://crm.georged.id.au
Tuesday, August 21, 2012 2:40 PM@George: Do mean "Make sure the SSL is ticked", not TLS? Because I can't see TSL anywhere in the settings.
Tuesday, December 18, 2012 5:00 AM
hi, i am getting the same problem.
I took the https://testoutlook.com/EWS/Exchange.asmx Availability Service URL from the outlook.
Server: Outgoing Status: Failure - An error occurred while checking the connection to e-mail server. The request failed with HTTP status 401: Unauthorized.
Any solution for this..
Wednesday, December 19, 2012 9:48 PM
Apply Update Rollup 11 to the Router.
If you are using Exchange Online use the following settings for your Outgoing Profile
Profile Name: Exch Online Outgoing
E-mail Server Type: ExchangeOnline
Protocol: leave at default (It will be greyed out anyway)
Authentication Type: leave at default (It will be greyed out anyway)
Use AutoDiscover: Check this option
Access Credentials: Other Specified
User Type: Administrator
User Name: Use your Exchange Online Admin user account, add it as email address
Password: Exchange Online Admin user accounts password
Also make sure you exit the email router config tool and restart the email route service before testing again.
- Edited by ChrisDodgson1 Wednesday, December 19, 2012 9:50 PM
Thursday, December 20, 2012 10:20 AM
You need to update ur CRM and Email Router using Updated Rollups 7 and above which would ressolve ur problem.Plesae follow below forum