I am trying to get the appointment information of a contact from my company using VB.NET (not VBA) and the only method I could find for this was the FreeBusy method which VBA definition can be found here.
I came up so far with this code :
Dim AppOutlook As New Outlook.Application
Dim appt As Outlook.AppointmentItem =
CType(AppOutlook.CreateItem(
Outlook.OlItemType.olAppointmentItem), Outlook.AppointmentItem)
Dim recip1 As Outlook.Recipient =
appt.Recipients.Add("Jack Smith")
MsgBox(recip1.FreeBusy(#05/06/2018#, 60))
However, when arriving at the method FreeBusy, Visual Studio throws me an exception with the only label Sorry, something went wrong. You may want to try again.
and no further details.
I checked if the variable receip1 was empty, but it is not and it well got the right contact with the right email address.
I really have no idea what I could have done wrong.