Problems Retrieving Exchange Free/Busy Information for Free/Busy Board
So I've been trying to get Glen's FreeBusy board working (http://gsexdev.blogspot.com/2010/03/freebusy-board-for-exchange-ews-managed.html) And I keep running into the following problem: Exception setting "RequestedFreeBusyView": "Cannot convert value "DetailedMerged" to type "Microsoft.Exchange.WebServices.Data.FreeBusyViewType". Error: "Invalid cast from 'Microsoft.Exchange.WebServices.Data.FreeBusyViewType' to 'Microsoft.Exchange.WebServices.Data.FreeBusyViewType'."" At C:\Program Files\Microsoft\Exchange\Web Services\1.1\freebusy.ps1:36 char:22 + $AvailabilityOptions. <<<< RequestedFreeBusyView = [Microsoft.Exchange.WebServices.Data.FreeBusyViewType]::DetailedMerged + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyAssignmentException When I try to break it down and go line-by-line, I run into problems when trying to set the FreeBusyViewType: $AvailabilityOptions = new-object Microsoft.Exchange.WebServices.Data.AvailabilityOptions $AvailabilityOptions.RequestedFreeBusyView = [Microsoft.Exchange.WebServices.Data.FreeBusyViewType]::DetailedMerged Anyone have any suggestions?
August 17th, 2011 10:19pm

Well that was fun... $AvailabilityOptions.RequestedFreeBusyView = [Microsoft.Exchange.WebServices.Data.FreeBusyViewType]::DetailedMerged.ToString() seems to have worked
Free Windows Admin Tool Kit Click here and download it now
August 17th, 2011 10:40pm

Surprising amount of problems for copying code :S Method invocation failed because [Microsoft.Exchange.WebServices.Data.ExchangeService] doesn't contain a method named 'GetUserAvailability'
August 17th, 2011 10:53pm

Hi Anonymous6909915, The value of the RequestedFreeBusyView property is a FreeBusyViewType enumeration value. The default value is Detailed. Detailed: If merged free/busy information only is available, as with requesting information for users in a Microsoft Exchange Server 2003 forest, MergedOnly will be returned. Otherwise, FreeBusy or Detailed will be returned. DetailedMerged: If only merged free/busy information is available, for example if the mailbox exists on a computer that is running Exchange 2003, MergedOnly will be returned. Otherwise, FreeBusyMerged or DetailedMerged will be returned. So there may problem when you run: $AvailabilityOptions.RequestedFreeBusyView = [Microsoft.Exchange.WebServices.Data.FreeBusyViewType]::DetailedMerged You can know more detail from this document; AvailabilityOptions.RequestedFreeBusyView Property http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.availabilityoptions.requestedfreebusyview(v=exchg.80).aspx FreeBusyViewType Enumeration http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.freebusyviewtype(v=exchg.80).aspx For Development issue, it is better for you to ask question in our Development forum: Exchange Development forum http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads Thanks, Evan Liu TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2011 11:04am

Hi Anonymous6909915, Any updates on this issue? Thanks, Evan Liu TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com
August 22nd, 2011 4:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics