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:
Name: UserName
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 (mailrouter@sub.onmicrosoft.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
Problem signature:
P1: 5.0.9690.2165
P2: Microsoft.Crm.Tools.EmailAgent
P3: Microsoft.Crm
P4: Object reference not set to an instance of an object.;Hash='1347396225'
P5:
P6:
P7:
P8:
P9:
P10:
Attached files:
C:\Windows\Temp\tmp9F5D.tmp
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\NonCritical_5.0.9690.2165_f5b611cfe3894abc42c7ea2fe56b47ed6beea3c0_cab_0f94a040
Analysis symbol:
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.Providers.CrmPollingSendEmailProvider.Run()
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!
Arkady.