search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Compatibility with VS2008 SP1 Beta and EntityDataSource

Asked by Andrew
15 years ago.

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

Comment posted by Andrew
15 years ago.

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 Dan Letecky
15 years ago.
OK. Thanks for posting the result.
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.