This is a migrated thread and some comments may be shown as answers.

Object of type 'Telerik.Web.UI.HourlyRecurrenceRule' cannot be converted to type 'Telerik.Web.UI.RecurrenceRule'.

2 Answers 60 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Roatin Marth
Top achievements
Rank 1
Roatin Marth asked on 11 Feb 2010, 04:07 PM
Has anyone seen this error before?
Why would I be seeing a recurrence rule conversion error on a staging environment where I don't on my local development environment?
This shouldn't happen because a specific recurrence is still a recurrence.

The error looks like this followed by a stack trace. I hope someone might be able to spot something and offer some help.
This is happening for all recurrence types... hmmmmmmmmmmmmm.

System.ArgumentException: Object of type 'Telerik.Web.UI.HourlyRecurrenceRule' cannot be converted to type 'Telerik.Web.UI.RecurrenceRule'.    
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)    
at System.Reflection.RtFieldInfo.InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency)    
at System.Reflection.RtFieldInfo.InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck)    
at System.Runtime.Serialization.FormatterServices.SerializationSetValue(MemberInfo fi, Object target, Object value)    
at System.Runtime.Serialization.ObjectManager.CompleteObject(ObjectHolder holder, Boolean bObjectFullyComplete)    
at System.Runtime.Serialization.ObjectManager.DoNewlyRegisteredObjectFixups(ObjectHolder holder)    
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)    
at System.Runtime.Serialization.ObjectManager.DoFixups()    
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)    
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)    
at System.EnterpriseServices.ComponentSerializer.UnmarshalFromBuffer(Byte[] b, Object tp)    
at System.EnterpriseServices.ComponentServices.ConvertToMessage(String s, Object tp)    
at System.EnterpriseServices.ServicedComponent.RemoteDispatchHelper(String s, Boolean& failed)    
at System.EnterpriseServices.ServicedComponent.System.EnterpriseServices.IRemoteDispatch.RemoteDispatchAutoDone(String s)    
at System.EnterpriseServices.IRemoteDispatch.RemoteDispatchAutoDone(String s)   at System.EnterpriseServices.RemoteServicedComponentProxy.Invoke(IMessage reqMsg)    
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)    
at Application.ControlScheduler.ControlScheduleFacade.UpdateControlSchedule(ControlSchedule schedule, String userName)    
at Web.Control.ScheduleProvider.Update(RadScheduler owner, Appointment appointmentToUpdate)    
at Telerik.Web.UI.Scheduling.AppointmentController.UpdateAppointmentThroughProvider(Appointment appointmentToUpdate)    
at Telerik.Web.UI.Scheduling.AppointmentController.UpdateAppointment(Appointment originalAppointment, Appointment modifiedAppointment)    
at Telerik.Web.UI.WebServiceAppointmentController.UpdateAppointment[T](ISchedulerInfo schedulerInfo, T appointmentData)    
at Telerik.Web.UI.WebServiceAppointmentController.UpdateAppointment(ISchedulerInfo schedulerInfo, AppointmentData appointmentData)    
at Web.Control.SchedulerWebService.UpdateAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData) 

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Feb 2010, 11:06 AM
Hi Roatin,

Can you send us a live url of this error?


Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Accepted
towpse
Top achievements
Rank 2
answered on 15 Aug 2011, 08:14 PM
make sure that wherever you're using the telerik UI stuff that it's the same version.
i once had to reference that dll in a separate project from my web project and if i forgot to update both references i would get this error.
Tags
Scheduler
Asked by
Roatin Marth
Top achievements
Rank 1
Answers by
Peter
Telerik team
towpse
Top achievements
Rank 2
Share this question
or