Page 1 of 1

Where is the metadata?

Posted: Wed 23 Sep 2009 15:40
by sakkaku
I am trying to figure out how to setup the connectionstring to get this thing off the ground.

I get the error: The specified metadata path is not valid. A valid path must be either an existing directory, an existing file with extension '.csdl', '.ssdl', or '.msl', or a URI that identifies an embedded resource.[/code]

I don't seem to have the metadata, just .cs, .edml.view and .edps files generated from the DevArt entity model tool thingy. I have read through the help but there doesn't seem to be anything that covers this.

Posted: Wed 23 Sep 2009 18:06
by sakkaku
Found out it was creating an app.config w/ connection strings in them. Moved those into web.config and...

Unable to load the specified metadata resource.

There has to be something I am doing wrong.

- Right clicked the folder, selected Data -> Devart Entity Model
- Connected to the database in the tool that launches, drag over tables I want, etc
- Moved connectionString from app.config to web.config
- Wrote a basic ef query, seems to load in the connection string now and fails to find any metadata.

Is there anything else I need to be doing? I worked a little with EF and SQL Server and didn't have any issues getting the connection up and running.

Environment: VS 2008, Oracle 11g, dotConnect Oracle

Posted: Thu 24 Sep 2009 07:00
by AndreyR
Thank you for the report, we have already found this problem.
I will let you know as soon as it is fixed.

Posted: Thu 24 Sep 2009 15:34
by Discovery
I think I have the same problem.
Just downloaded the trial version today and I get the following error:

'Unable to load the specified metadata resource'

in the bit of code below:

----
public GalleryEntities() :
base@"name=Discovery.GalleryManagerConnectionString", "GalleryEntities")
----

My App.Config has the following connectionstring

----



----


Would be nice to know if this is the same problem and when there might be a fix for it.

Thanks

Posted: Fri 25 Sep 2009 12:21
by AndreyR
Yes, it is the same problem. It is associated with placing the model not to the root folder of the project.
As a temporary workaround, move the model to the root project folder.

Posted: Mon 02 Nov 2009 08:46
by AndreyR
This problem is fixed in the latest Beta build of Entity Developer.

Posted: Tue 24 Nov 2009 15:53
by Wupaz
I use 2.20.43 (trial) and I have the same problem ?!?

And the model is int the root ...

Or I do something wrong ?

Posted: Wed 25 Nov 2009 12:24
by AndreyR
This problem was already discussed here:
http://www.devart.com/forums/viewtopic.php?p=50708