Event ID:4002;

Daniel Kaliel 1,266 Reputation points
2021-07-27T20:31:07.347+00:00

We are seeing the following error in our On-Premise Exchange server (2013) which is in a hybrid setup. We don't have any users complaining of the Free/Busy schedule not working and our testing shows it is working.

Process 18424: ProxyWebRequest FederatedCrossForest from S-1-5-21-4055847394-2181167018-4057280825-11054 to https://outlook.office365.com/EWS/Exchange.asmx failed. Caller SIDs: OAuth. The exception returned is Microsoft.Exchange.InfoWorker.Common.Availability.ProxyWebRequestProcessingException: Proxy web request failed. ---> System.Net.WebException: The request failed with HTTP status 404: Not Found.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.EndInvoke(IAsyncResult asyncResult)
at Microsoft.Exchange.InfoWorker.Common.Availability.Proxy.Service.EndGetUserPhoto(IAsyncResult asyncResult)
at Microsoft.Exchange.InfoWorker.Common.UserPhotos.UserPhotoApplication.EndProxyWebRequest(ProxyWebRequest proxyWebRequest, QueryList queryList, IService service, IAsyncResult asyncResult)
at Microsoft.Exchange.InfoWorker.Common.Availability.ProxyWebRequest.EndInvoke(IAsyncResult asyncResult)
at Microsoft.Exchange.InfoWorker.Common.Availability.AsyncWebRequest.EndInvokeWithErrorHandling()
--- End of inner exception stack trace ---
. Name of the server where exception originated: MREDMEXCH12. Make sure that the Active Directory site/forest that contain the user's mailbox has at least one local Exchange 2010 server running the Availability service. Turn up logging for the Availability service and test basic network connectivity.

Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,085 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyce Shen - MSFT 16,661 Reputation points
    2021-07-28T01:56:04.273+00:00

    Hi @Daniel Kaliel

    What's your on-prem Exchange server CU version? And where are your users located now, on-prem or cloud?

    Could you please share the result of the below command in your on-premise organization

    Get-OrganizationRelationship | FL Identity, TargetSharingEpr  
    

    I see the error that free/busy information for some mailboxes which were recently moved to O365 is not available, and will get the similar error log like yours.

    That issue is caused by Office 365 Autodiscover service which returns incorrect endpoint for calendar sharing for some mailboxes. To fix the issue you could configure TargetSharingEpr property in Organization relationship in your on-premise organization. It will force connection directly to correct O365 endpoint without using Autodiscover.

     Set-OrganizationRelationship -Identity "On Premises to Exchange Online Organization Relationship" -TargetSharingEpr "https://outlook.office365.com/ews/Exchange.asmx"  
    

    In addition, have you checked the freebusy result in ExRCA tool, does it return any error information?
    https://testconnectivity.microsoft.com/tests/FreeBusy/input

    Here is also an article introduces about Demystifying Hybrid Free/Busy: Finding errors and troubleshooting


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Daniel Kaliel 1,266 Reputation points
    2021-07-28T15:51:24.557+00:00

    We are on Exchange 2013 CU23 with the July security update installed. The vast majority of users 95%+ are still on premise with only a small test group in Exchange Online. Here are the results of the command:

    [PS] C:\Windows\system32>Get-OrganizationRelationship | FL Identity, TargetSharingEpr

    Identity : On-premises to O365 - 106de261-21f5-44b3-bc2e-b1ba3d3efa98
    TargetSharingEpr :

    The free/busy test came back with no errors:

    118714-free-busy-test.jpg


  2. Daniel Kaliel 1,266 Reputation points
    2021-08-03T15:05:57.947+00:00

    I've run that and will post back if the error is gone.

    0 comments No comments

  3. Mor Talla Gueye 1 Reputation point
    2022-07-08T15:43:33.183+00:00

    Hello,

    I know this post is a bit older. How was the problem solved ? What was the cause ?

    Thank you very much !


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.