none
Error: Exchange Web Services are not currently available RRS feed

  • Question

  • Hello,

    I am trying to send an email message using EWS Managed API. I am impersonating another user. 

    Here is my request:

          <t:TimeZoneContext>
            <t:TimeZoneDefinition Id="Eastern Standard Time" />
          </t:TimeZoneContext>
          <t:ExchangeImpersonation>
            <t:ConnectingSID>
              <t:PrimarySmtpAddress>ex2007.user1@mycom.com</t:PrimarySmtpAddress>
            </t:ConnectingSID>
          </t:ExchangeImpersonation>
        </soap:Header>
        <soap:Body>
          <m:CreateItem MessageDisposition="SendOnly">
            <m:Items>
              <t:Message>
                <t:Subject>Test Message</t:Subject>
                <t:Body BodyType="HTML">Test Message.</t:Body>
                <t:ToRecipients>
                  <t:Mailbox>
                    <t:EmailAddress>me.me@mycom.com</t:EmailAddress>
                  </t:Mailbox>
                </t:ToRecipients>
              </t:Message>
            </m:Items>
          </m:CreateItem>
        </soap:Body>
      </soap:Envelope>

    This works for sometime and then I start getting an error "Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request."

    If I try again after some time it works again and then fails again after a few successful tries. Here is the trace when failed: 

    </Trace>
    <Trace Tag="EwsResponseHttpHeaders" Tid="10" Time="2016-04-15 19:13:09Z">
    HTTP/1.1 500 Internal Server Error
    Transfer-Encoding: chunked
    request-id: 1d7b41f2-bb0a-4a34-96fa-16e5f479vk6c
    X-CalculatedBETarget: mail01.mycom.com
    X-Frame-Options: SAMEORIGIN,SAMEORIGIN
    X-DiagInfo: MAIL01
    X-BEServer: MAIL01
    Cache-Control: private
    Content-Type: text/xml; charset=utf-8
    Set-Cookie: exchangecookie=56450757804a4c8fb3cbfaae28e56340; expires=Sat, 15-Apr-2017 19:13:09 GMT; path=/; HttpOnly,X-BackEndCookie=S-1-5-21-746137067-1580818891-842925246-52641=u56Lnp2ejJqBx83KnZrMx5nSx5vMytLLy8rJ0sfJzZ3SyM7Nm5zMmZvOmZrHgYHNz87J0s/K0s7Kq87Gxc7Mxc/G; expires=Sun, 15-May-2016 19:13:09 GMT; path=/EWS; secure; HttpOnly
    Server: Microsoft-IIS/8.5
    X-AspNet-Version: 4.0.30319
    Persistent-Auth: true
    X-Powered-By: ASP.NET
    X-FEServer: MAIL02
    Date: Fri, 15 Apr 2016 19:13:09 GMT
    
    </Trace>
    <Trace Tag="EwsResponse" Tid="10" Time="2016-04-15 19:13:09Z" Version="15.00.084
    7.030">
      <?xml version="1.0" encoding="utf-8"?>
      <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
        <s:Body>
          <s:Fault>
            <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorNoRespondingCASInDestinationSite</faultcode>
            <faultstring xml:lang="en-US">Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.</faultstring>
            <detail>
              <e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorNoRespondingCASInDestinationSite</e:ResponseCode>
              <e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.</e:Message>
            </detail>
          </s:Fault>
        </s:Body>
      </s:Envelope>
    </Trace>
    Any ideas what is wrong?

    Thanks
    Vishnu



    • Edited by Vishnugupt Friday, April 15, 2016 7:31 PM
    Friday, April 15, 2016 7:26 PM

Answers

All replies