ASP.NET Dynamic Data Entities Web Application - Error

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Posts: 13
Joined: Mon 30 Nov 2009 23:45

ASP.NET Dynamic Data Entities Web Application - Error

Post by Emily » Mon 05 Apr 2010 18:42

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?


Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 06 Apr 2010 15:20

I have tried to reproduce the problem and failed.
I have sent a simple sample to the address provided in your forum profile.

Post Reply