Home Unanswered Active Tags New Question

Compatibility with VS2008 SP1 Beta and EntityDataSource

I setting the DayPilotCalendar.DataSourceID to an EntityDataSource under VS2008 SP1. At runtime, I get the following stack trace. Please assist, as I need to be able to bind to an EntityDataSource:

[InvalidOperationException: The ObjectContext must be configured by 1) supplying it in OnSelecting event, 2) defining ContextType, 3) defining ContextTypeName or 4) defining both ConnectionString and DefaultContainerName.]
System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +92619
System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +269
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
DayPilot.Web.Ui.DayPilotCalendar.PerformSelect() +128
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Asked by Andrew 3 years ago.
Replies

Actually, seems there was something unrelated screwed up on my Web page.

I fixed that other issue, and DayPilotLite is working OK so far with EntityDataSource. Will let you know if I hit any other problems.

Andrew

Comment posted by Andrew 3 years ago.
OK. Thanks for posting the result.
Comment posted by Dan Letecky 3 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java