How Set HttpHeader in EWS autogenerated Proxy RRS feed

  • Question

  • Hello

    Im running a synchronisation application with an autogenerated Proxy Class in .NET built with Exchange2010.

    This app is running for 6 years without problems.

    Since a few days, I receive the error "ExchangeImpersonation SOAP header must not exist for this type of OAuth token"

    I searched and found some hints in other forums, setting the X-AnchorMailbox would maybe solve this problem.

    e.g. service.HttpHeaders.Add("X-AnchorMailbox", targetSmtp);

    But they always refer to the EWS Managed API and I cannot find the corresponding property in my ExchangeServiceBinding-Object. 

    so how can I set this header in my autogenerated proxy?


    Tuesday, October 23, 2018 7:22 AM

All replies

  • Hi Stefan Loppacher2,

    Have you checked this link:



    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

    Tuesday, October 23, 2018 10:11 AM