The actual error is pointing towards an issue with the email address your trying to discover rather then an issue with the code, I would suggest trying to discover the address with the RCA first and see if that works https://testconnectivity.microsoft.com/tests/o365
POX Autodiscover Request Email Address Can't Be Found
I am trying to work with public folders on Exchange Online using EWS, and I need to do a POX Autodiscover request to determine the X-PublicFolderInformation header value as described here:
I am getting this error:
I am using OAuth and Exchange Online, but I try doing the same request to an on premise Exchange server using NTLM, it works fine. Is this something that is not supported with OAuth, or could there be some other configuration changes I need to make in order for this to work? Thanks!