Where is the metadata?

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
sakkaku
Posts: 2
Joined: Wed 23 Sep 2009 15:27

Where is the metadata?

Post by sakkaku » Wed 23 Sep 2009 15:40

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.

sakkaku
Posts: 2
Joined: Wed 23 Sep 2009 15:27

Post by sakkaku » Wed 23 Sep 2009 18:06

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

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

Post by AndreyR » Thu 24 Sep 2009 07:00

Thank you for the report, we have already found this problem.
I will let you know as soon as it is fixed.

Discovery
Posts: 14
Joined: Thu 24 Sep 2009 15:10

Post by Discovery » Thu 24 Sep 2009 15:34

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

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

Post by AndreyR » Fri 25 Sep 2009 12:21

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.

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

Post by AndreyR » Mon 02 Nov 2009 08:46

This problem is fixed in the latest Beta build of Entity Developer.

Wupaz
Posts: 8
Joined: Fri 19 Sep 2008 13:36

Post by Wupaz » Tue 24 Nov 2009 15:53

I use 2.20.43 (trial) and I have the same problem ?!?

And the model is int the root ...

Or I do something wrong ?

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

Post by AndreyR » Wed 25 Nov 2009 12:24

This problem was already discussed here:
http://www.devart.com/forums/viewtopic.php?p=50708

Post Reply