I can use a Linq Data Source for the scheduler without a problem withour resources.
However if I have one linq datasource for the scheduler and another for a resource I get the following error:
Cannot access a disposed object.
Object name: 'DataContext accessed after Dispose.'.
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.ObjectDisposedException: Cannot access a disposed object.
Object name: 'DataContext accessed after Dispose.'.
This is Linq to Sql untouched just pointing to a table and related table with the following aspx:
<
telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="Web20"
DataEndField="End" DataKeyField="CourseId" DataRecurrenceField="RecurrenceRule"
DataRecurrenceParentKeyField="RecurrenceReferenceId"
DataSourceID="LinqDataSource1" DataStartField="Start"
DataSubjectField="Subject">
<ResourceTypes>
<telerik:ResourceType DataSourceID="LinqDataSource2" ForeignKeyField="CentreId"
KeyField="CentreId" Name="Resource Type 0" TextField="Name" />
</ResourceTypes>
</telerik:RadScheduler>
<asp:LinqDataSource ID="LinqDataSource1" runat="server"
ContextTypeName="BcNetAppLogic.BcNetDataContext" EnableDelete="True"
EnableInsert="True" EnableUpdate="True" TableName="Courses">
</asp:LinqDataSource>
<asp:LinqDataSource ID="LinqDataSource2" runat="server"
ContextTypeName="BcNetAppLogic.BcNetDataContext" EnableDelete="True"
EnableInsert="True" EnableUpdate="True" TableName="Centres">
</asp:LinqDataSource>
Any ideas if this should be possible?