Unable to load the specified metadata resource

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
suhman
Posts: 5
Joined: Tue 15 Jul 2014 15:12

Unable to load the specified metadata resource

Post by suhman » Tue 15 Jul 2014 15:22

Hi,

I am getting an exception unable to load the specified metadata resource in the Web api project. I have edml file in another project (DAL) and the web api call the repository which exists in the DAL project.

I tried the below liks, but it didn't worked.
http://forums.devart.com/viewtopic.php?t=22092

I tried updating the connection string as below and it didn't work either.
metadata=res://DataModel.csdl|res://DataModel.ssdl|res://DataModel.msl;provider=Devart.Data.Oracle;provider connection string=""User Id=scott;Password=tiger;Server=WAPI;Persist Security Info=True
to
metadata=res://SimpleDAL.dll/DataModel.csdl|res://SimpleDAL.dll/DataModel.ssdl|res://SimpleDAL.dll/DataModel.msl;provider=Devart.Data.Oracle;provider connection string=""User Id=scott;Password=tiger;Server=WAPI;Persist Security Info=True
The build action of the edml is set to
DevartEntityDeploy
Copy to Output Directory
Do not copy
Custom Tool
DevartEfGenerator
Version
5.0.993.0
Also I noticed that when I view the dll in object browser, I don't see any csdl/ssdl or msl file.

suhman
Posts: 5
Joined: Tue 15 Jul 2014 15:12

Re: Unable to load the specified metadata resource

Post by suhman » Tue 15 Jul 2014 21:48

Nevermind, got it working now.

Code: Select all

metadata=res://SimpleDAL/DataModel.csdl|res://SimpleDAL/DataModel.ssdl|res://SimpleDAL/DataModel.msl;provider=Devart.Data.Oracle;provider connection string=""User Id=scott;Password=tiger;Server=WAPI;Persist Security Info=True

Post Reply