Forum Discussion
EWS with oAuth "An internal server error occurred. The operation failed."
Same here, we are already using:
ewsClient.HttpHeaders.Add("X-AnchorMailbox", "{emailAddress}")
We've been getting this error for a few days now:
"Microsoft.Exchange.WebServices.Data.ServiceResponseException: An internal server error occurred. The operation failed."
It happens when calling the function:
ewsClient.ResolveName(searchStr, ResolveNameSearchLocation.DirectoryOnly, True)
The console application is running from an Azure VM.
The strange thing is, when I run the same application from my laptop locally, it works. No error.
- niteshdashoreSep 08, 2022Copper Contributor
MikeCoop I am alos getting the same error. Its working locally and getting this issue on server randomly. I will suggest you to open a ticket on microsoft.
- Kevin BrannonAug 26, 2022Copper Contributor
Same error here, but only intermittently. Odd that it cropped up seemingly just this week.
- ThinkjohnAug 26, 2022Copper Contributor
i am getting same error as well. I already include the header for the impersonated mailbox.
It is intermittent but often enough that it is a serious problem.
please post back if you find a solution.
- chad512Aug 27, 2022Copper ContributorSwitching to Basic Auth with Application Impersonation is a temporary workaround for us.