Error: Mapping not found in workspace

I just start a new model from a simple database and receive this error when I try manipulate some data:

The mapping for Entity Container 'ADONextLib.ADONext' was not found in Workspace.

The samples from the CTP is working properly.

There is a connectionstring in a .config file called "ADONextLib.ADONext"

[606 byte] By [Vítor] at [2008-2-13]
# 1

In order to better answer your question it would help if you could share with us your .csdl file and the code where you setup and try to use the context. In general what this message is saying is that the system was unable to find some of the metadata it needs in order to be able to interact with your database.

- Danny

DanielSimmons-MSFT at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...
# 2

Occurred that in sometime I clicked in SSDL, CSDL ans MSL files and exclude from project and than when I include them comeback I didn't mark "Copy to output directory if newest"

Now it's work properly!

Thanks and sorry!

Vítor at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...
# 3

A suggestion to help out here:

You can keep related metadata files in a separate directory and load them up at runtime. This allows you to for example, share the same metadata files accross solutions, or can help you to manage different metadata files for different projects in one location. We'll have better ways to manage these files in future CTPs.

DanDosenMSFT at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...
# 4

A suggestion to help out here:

You can keep related metadata files in a separate directory and load them up at runtime. This allows you to for example, share the same metadata files accross solutions, or can help you to manage different metadata files for different projects in one location. We'll have better ways to manage these files in future CTPs.

DanDosenMSFT at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...

Visual Studio Orcas

Site Classified