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

Rad Scheduler

3 Answers 77 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Viji
Top achievements
Rank 1
Viji asked on 24 Jul 2008, 08:13 PM
Hi,

I am using rad scheduler. I have a custom provider attached to the scheduler.
After executing this function

public class MyDbSchedulerProvider : DbSchedulerProviderBase
{
     public override IEnumerable<Appointment> GetAppointments(RadScheduler owner)
    {
       ---------
      ---------
     return appointments;

    }

I am getting following error

Type 'System.Xml.XmlAttribute' in Assembly 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.Serialization.SerializationException: Type 'System.Xml.XmlAttribute' in Assembly 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.

Please help.

Thanks
Viji

3 Answers, 1 is accepted

Sort by
0
Aaron Colbran
Top achievements
Rank 2
answered on 25 Jul 2008, 01:14 AM
Hello Viji,

If your prvider is XML please check here

Cheers

Trent Thompson
XGIS Australia
0
Viji
Top achievements
Rank 1
answered on 25 Jul 2008, 07:05 PM
Hello,

I am not using XMLProvider provided by Telerik. I have written a custom provider inherited from DbSchedulerProviderBase.

But inside this provider I am using XML to manipulate data.
For example I am using dom,node, nodelist of the XML inside this custom provider.

Thanks
Viji
0
Viji
Top achievements
Rank 1
answered on 30 Jul 2008, 04:08 PM
Hello,

I have created a custom provider inherited from DbSchedulerProviderBase.
Inside the code I am using XML to manipulate data.
I am getting following error.
Can some help me out please.

Type 'System.Xml.XmlAttribute' in Assembly 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.Serialization.SerializationException: Type 'System.Xml.XmlAttribute' in Assembly 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.


Here is my provider declaration snippet.

public class MyDbSchedulerProvider : DbSchedulerProviderBase
{
     public override IEnumerable<Appointment> GetAppointments(RadScheduler owner)
    {
       ---------
      ---------
     return appointments;

    }

Thanks
Viji

Tags
Scheduler
Asked by
Viji
Top achievements
Rank 1
Answers by
Aaron Colbran
Top achievements
Rank 2
Viji
Top achievements
Rank 1
Share this question
or