Posted 11 September 2023, 10:39 am EST - Updated 11 September 2023, 10:48 am EST
My application uses the C1Schedule control to import iCal feeds. We have one (maybe more) cases where a customer is receiving a generic “Object reference not set to an instance of an object” error. The relevant code is:
Dim ctl As New C1.Win.C1Schedule.C1Schedule
ctl.CalendarInfo.FirstDate = dateRange.Start.DateValue ctl.CalendarInfo.LastDate = dateRange.TheEnd.DateValue ctl.DataStorage.Import(tempFile, C1.C1Schedule.FileFormatEnum.iCal)
I have checked and confirmed that the tempFile path is valid, and pulled a copy of the file. The error is thrown when calling the Import function. What further steps can I take to diagnose why this function is throwing an error for the file in question?
the date range is from a month in the past (August 11) to a month in the future (October 11)
the stacktrace for the dll itself is:
at C1.C1Schedule.o.a(DateTime A_0, CalendarInfo A_1)
at C1.C1Schedule.o.c(DateTime A_0)
at C1.C1Schedule.o.b(DateTime A_0)
at C1.C1Schedule.q.a(String A_0, String A_1, DateTime& A_2)
at C1.C1Schedule.j.a(StreamReader A_0)
at C1.C1Schedule.j.b(StreamReader A_0)
at C1.C1Schedule.j.c(Stream A_0)
at C1.C1Schedule.i.a(Stream A_0)
at C1.C1Schedule.i.a(String A_0)
at C1.C1Schedule.C1ScheduleStorage.Import(String path, FileFormatEnum format)
Note: the dll’s are the 4.5.2 version