A few folks trying out Dynamic Data have run across this error and emailed me about it:
“There are no accessible tables. Make sure that at least one data model is registered in Global.asax and scaffolding is enabled or implement custom pages”
It means that you forgot to register your data model (LINQ to SQL or Entity Framework) in the Global.asax file, so the dynamic data engine doesn’t know what data to merge with what field and page templates. Here’s the code you need to add to Global.asax to get it working:
void Application_Start(object sender, EventArgs e) { MetaModel model = new MetaModel(); model.RegisterContext(typeof(YourDataContextType), new ContextConfiguration() { ScaffoldAllTables = true });} }
Where YourDataContextType is the name of your data model’s DataContext object. Error no more, your data model is now registered and the engine is aware of it.



