Tuesday, April 21, 2009

Dynamic Data - The ContextType property of control 'EntityDataSource1' must specify a data context.

If you ever get this type of error using Dynamic Data when creating you own Dynamic Data pages then you need to add to the markup the ContextTypeName with the fully qualified namesapace and class name of your entity context object eg.

asp:EntityDataSource ContextTypeName="YourModelNameSpace.YourEntitiesContext"

No comments:

Post a Comment