Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

[Exchange-Online][EWSMA][VB.net][Windows]

$
0
0
I have an ASP.net (4.0) web application that uses the EWS Managed API 2.0 to query available appointment times for our staff. It has been working fine for a year. Sometime in the last 2 weeks, it stopped returning available appointment times and comes back with no suggested times, even though there are multiple appointment times available. Has something changed with the API recently, that would have caused this to stop working? 

Here's a code snippet in case it helps:

Dim attendees As New List(Of AttendeeInfo)()
attendees.Add(New AttendeeInfo() With {.SmtpAddress = ddlStaff.SelectedValue, .AttendeeType = MeetingAttendeeType.Organizer})

Dim meetingOptions As New AvailabilityOptions()
meetingOptions.MeetingDuration = 30
meetingOptions.MaximumNonWorkHoursSuggestionsPerDay = 0
meetingOptions.GoodSuggestionThreshold = 49
meetingOptions.MinimumSuggestionQuality = SuggestionQuality.Good
meetingOptions.DetailedSuggestionsWindow = New TimeWindow(DateTime.Now.AddDays(1), DateTime.Now.AddDays(7))

Dim results As GetUserAvailabilityResults = Service.GetUserAvailability(attendees, New TimeWindow(DateTime.Now, DateTime.Now.AddDays(2)), AvailabilityData.Suggestions, meetingOptions)

Below is the trace output:

1/5/2015 2:33:44 PM : EwsRequestHttpHeaders --- <Trace Tag="EwsRequestHttpHeaders" Tid="103" Time="2015-01-05 19:33:44Z">
POST /EWS/Exchange.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: text/xml
User-Agent: ExchangeServicesClient/15.00.0516.014
Accept-Encoding: gzip,deflate


</Trace>

1/5/2015 2:33:44 PM : EwsRequest --- <Trace Tag="EwsRequest" Tid="103" Time="2015-01-05 19:33:44Z" Version="15.00.0516.014">
  <?xml version="1.0" encoding="utf-8"?>
  <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
      <t:RequestServerVersion Version="Exchange2013" />
      <t:TimeZoneContext>
        <t:TimeZoneDefinition Name="(UTC-05:00) Eastern Time (US &amp; Canada)" Id="Eastern Standard Time">
          <t:Periods>
            <t:Period Bias="P0DT5H0M0.0S" Name="Standard" Id="Std" />
            <t:Period Bias="P0DT4H0M0.0S" Name="Daylight" Id="Dlt/1" />
            <t:Period Bias="P0DT4H0M0.0S" Name="Daylight" Id="Dlt/2007" />
          </t:Periods>
          <t:TransitionsGroups>
            <t:TransitionsGroup Id="0">
              <t:RecurringDayTransition>
                <t:To Kind="Period">Dlt/1</t:To>
                <t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
                <t:Month>4</t:Month>
                <t:DayOfWeek>Sunday</t:DayOfWeek>
                <t:Occurrence>1</t:Occurrence>
              </t:RecurringDayTransition>
              <t:RecurringDayTransition>
                <t:To Kind="Period">Std</t:To>
                <t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
                <t:Month>10</t:Month>
                <t:DayOfWeek>Sunday</t:DayOfWeek>
                <t:Occurrence>-1</t:Occurrence>
              </t:RecurringDayTransition>
            </t:TransitionsGroup>
            <t:TransitionsGroup Id="1">
              <t:RecurringDayTransition>
                <t:To Kind="Period">Dlt/2007</t:To>
                <t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
                <t:Month>3</t:Month>
                <t:DayOfWeek>Sunday</t:DayOfWeek>
                <t:Occurrence>2</t:Occurrence>
              </t:RecurringDayTransition>
              <t:RecurringDayTransition>
                <t:To Kind="Period">Std</t:To>
                <t:TimeOffset>P0DT2H0M0.0S</t:TimeOffset>
                <t:Month>11</t:Month>
                <t:DayOfWeek>Sunday</t:DayOfWeek>
                <t:Occurrence>1</t:Occurrence>
              </t:RecurringDayTransition>
            </t:TransitionsGroup>
          </t:TransitionsGroups>
          <t:Transitions>
            <t:Transition>
              <t:To Kind="Group">0</t:To>
            </t:Transition>
            <t:AbsoluteDateTransition>
              <t:To Kind="Group">1</t:To>
              <t:DateTime>2007-01-01T05:00:00.000Z</t:DateTime>
            </t:AbsoluteDateTransition>
          </t:Transitions>
        </t:TimeZoneDefinition>
      </t:TimeZoneContext>
    </soap:Header>
    <soap:Body>
      <m:GetUserAvailabilityRequest>
        <m:MailboxDataArray>
          <t:MailboxData>
            <t:Email>
              <t:Address>XXXX@xxxx.edu</t:Address>
            </t:Email>
            <t:AttendeeType>Organizer</t:AttendeeType>
            <t:ExcludeConflicts>false</t:ExcludeConflicts>
          </t:MailboxData>
        </m:MailboxDataArray>
        <t:SuggestionsViewOptions>
          <t:GoodThreshold>49</t:GoodThreshold>
          <t:MaximumResultsByDay>10</t:MaximumResultsByDay>
          <t:MaximumNonWorkHourResultsByDay>0</t:MaximumNonWorkHourResultsByDay>
          <t:MeetingDurationInMinutes>30</t:MeetingDurationInMinutes>
          <t:MinimumSuggestionQuality>Good</t:MinimumSuggestionQuality>
          <t:DetailedSuggestionsWindow>
            <t:StartTime>2015-01-06T00:00:00</t:StartTime>
            <t:EndTime>2015-01-12T00:00:00</t:EndTime>
          </t:DetailedSuggestionsWindow>
        </t:SuggestionsViewOptions>
      </m:GetUserAvailabilityRequest>
    </soap:Body>
  </soap:Envelope>
</Trace>

1/5/2015 2:33:46 PM : EwsResponseHttpHeaders --- <Trace Tag="EwsResponseHttpHeaders" Tid="103" Time="2015-01-05 19:33:46Z">
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Encoding: gzip
Vary: Accept-Encoding
request-id: 14654925-83d1-475a-bce9-7fadbbad462b
X-CalculatedBETarget: blupr04mb754.namprd04.prod.outlook.com
X-DiagInfo: BLUPR04MB754
X-BEServer: BLUPR04MB754
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Set-Cookie: exchangecookie=537dd30999024bb9902e2691a4d78d2a; expires=Tue, 05-Jan-2016 19:33:44 GMT; path=/; HttpOnly,X-BackEndCookie2=ga.ag-oap-students@cornell.edu=u56Lnp2ejJqBzZ3Lzc/Hx5vSmcbPntLLnMqb0p2cyc7SyM/Hzp2byJ7Nnc6egZyQjZGak5PRmpuKgc3PzsrSz83Sz8urzsbFzMzFy8qBkZ6Sj42bz8vRj42Qm9GQiouTkJCU0ZyQkg==; expires=Wed, 04-Feb-2015 19:33:45 GMT; path=/EWS; secure; HttpOnly,X-BackEndCookie=xxxxx@xxxxx.edu=u56Lnp2ejJqBzZ3Lzc/Hx5vSmcbPntLLnMqb0p2cyc7SyM/Hzp2byJ7Nnc6egZyQjZGak5PRmpuKgc3PzsrSz83Sz8urzsbFzMzFy8o=; expires=Wed, 04-Feb-2015 19:33:45 GMT; path=/EWS; secure; HttpOnly
Server: Microsoft-IIS/8.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-FEServer: BY1PR0201CA0023
Date: Mon, 05 Jan 2015 19:33:45 GMT


</Trace>

1/5/2015 2:33:46 PM : EwsResponse --- <Trace Tag="EwsResponse" Tid="103" Time="2015-01-05 19:33:46Z" Version="15.00.0516.014">
  <?xml version="1.0" encoding="utf-8"?>
  <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
      <h:ServerVersionInfo MajorVersion="15" MinorVersion="1" MajorBuildNumber="49" MinorBuildNumber="19" Version="V2_30" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    </s:Header>
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <GetUserAvailabilityResponse xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
        <SuggestionsResponse>
          <ResponseMessage ResponseClass="Success">
            <ResponseCode>NoError</ResponseCode>
          </ResponseMessage>
          <SuggestionDayResultArray>
            <SuggestionDayResult xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
              <Date>2015-01-06T00:00:00</Date>
              <DayQuality>Poor</DayQuality>
              <SuggestionArray />
            </SuggestionDayResult>
            <SuggestionDayResult xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
              <Date>2015-01-07T00:00:00</Date>
              <DayQuality>Poor</DayQuality>
              <SuggestionArray />
            </SuggestionDayResult>
            <SuggestionDayResult xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
              <Date>2015-01-08T00:00:00</Date>
              <DayQuality>Poor</DayQuality>
              <SuggestionArray />
            </SuggestionDayResult>
            <SuggestionDayResult xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
              <Date>2015-01-09T00:00:00</Date>
              <DayQuality>Poor</DayQuality>
              <SuggestionArray />
            </SuggestionDayResult>
            <SuggestionDayResult xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
              <Date>2015-01-10T00:00:00</Date>
              <DayQuality>Poor</DayQuality>
              <SuggestionArray />
            </SuggestionDayResult>
            <SuggestionDayResult xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
              <Date>2015-01-11T00:00:00</Date>
              <DayQuality>Poor</DayQuality>
              <SuggestionArray />
            </SuggestionDayResult>
          </SuggestionDayResultArray>
        </SuggestionsResponse>
      </GetUserAvailabilityResponse>
    </s:Body>
  </s:Envelope>
</Trace>

Thanks for any help you can provide!

Sue

Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>