Page 1 of 1

ASP.NET Dynamic Data Entities Web Application - Error

Posted: Mon 05 Apr 2010 18:42
by Emily
I am trying to take advantage of ASP.NET's Dynamic Data framework using dotConnect for Oracle.

I have a project that has my Model, i.e. my Entity Framework EDM, created using dotConnect for Oracle. This works great using other UI technologies.

Now, I want to see how I can hook up this Dynamic Data technology, but when I hook my DataContext of the Model, which is ProjectXEntities.

I threw this in the Global.asax.cs file:

Code: Select all

model.RegisterContext(typeof(ProjectXEntities), new ContextConfiguration() { ScaffoldAllTables = true });
And when I run it, I get the following error via the ASP.NET page:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
And it points to line 46:

Code: Select all

Line 44:        /// Initializes a new ProjectXEntities object using the connection string found in the ProjectXEntities section of the application configuration file.
Line 45:        /// 
Line 46:        public ProjectXEntities() : 
Line 47:                base("name=ProjectXEntities", "ProjectXEntities")
Line 48:        {
So I have to projects, one containing my Model and the other containing my ASP.NET project.

Do you have any tutorials regarding Dynamic Data by the way?


Posted: Tue 06 Apr 2010 15:20
by AndreyR
I have tried to reproduce the problem and failed.
I have sent a simple sample to the address provided in your forum profile.