I have followed the instruction to create dbschedulerprovider and webservice. I 'm trying to consume webservice with following code:
While debugging on server side everything seems to be fine, unfortunately on client side I receive following error:
--
The added or subtracted value results in an un-representable DateTime.\r\nParameter name: t","StackTrace":" at System.DateTime.op_Subtraction(DateTime d, TimeSpan t)\r\n at Telerik.Web.UI.Scheduling.AppointmentController.ExpandRecurrence(Appointment parent, DateTime rangeStart, DateTime rangeEnd)\r\n at Telerik.Web.UI.Scheduling.AppointmentController.AddAppointmentAndExpand(Appointment appointment, DateTime rangeStart, DateTime rangeEnd)\r\n at Telerik.Web.UI.WebServiceAppointmentController.PopulateAppointments(ISchedulerInfo schedulerInfo)\r\n at Telerik.Web.UI.WebServiceAppointmentController.\u003cGetAppointments\u003ed__0`1.MoveNext()\r\n at System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable(IEnumerable enumerable, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)\r\n at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)\r\n at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)\r\n at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat)\r\n at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat)\r\n at System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams)\r\n at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType":"System.ArgumentOutOfRangeException
--