none
Get CASVersion of exchange server for a user in exchange 2007 RRS feed

  • Question

  • Hi,

    I am trying to Get the CASVersion of a target user's mail box.

    The Exchange 2007 Server has its Auto discover in POX and i am using EWS Managed API

    Below is the Code:

     AutodiscoverService autoService = new AutodiscoverService(ExchangeVersion.Exchange2007_SP1);
    autoService.Credentials = //Provided the credential;

    autoService.Url = new Uri("https://mydomain/autodiscover/autodiscover.xml");

    GetUserSettingsResponse userResponse = autoService.GetUserSettings("user@mydomain", UserSettingName.CasVersion);

    Error:

    "An element node 'soap:Envelope' of the type Element was expected, but node 'Autodiscover' of type Element was found."


    Gyana Ranjan Panda

    Thursday, July 16, 2015 12:02 PM

All replies