Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find the Conceptual Schema node to embed as a resource for input file

Just updated to .NET 4.5 framework with Entity Framework 5.0 and am getting the following errors when trying to build:

  • Could not find the Conceptual Schema node to embed as a resource for input file 'E:\Builds\1\Mobooka v2\Mobooka.Services\Sources\Mobooka.DAL\Tracking.edmx'.

  • Could not find the Storage Schema node to embed as a resource for input file 'E:\Builds\1\Mobooka v2\Mobooka.Services\Sources\Mobooka.DAL\Tracking.edmx'.

  • Could not find the Mapping node to embed as a resource for input file 'E:\Builds\1\Mobooka v2\Mobooka.Services\Sources\Mobooka.DAL\Tracking.edmx'.

Ive only found about 3 posts through google relating to this problem with none of them providing a solution. Any help would be appreciated.

like image 691
user1830583 Avatar asked Nov 16 '12 19:11

user1830583


2 Answers

Are you running into this problem when building on TFS?

If so, I experienced the same problem today:

Could not find the Conceptual Schema node to embed as a resource for input file ...
Could not find the Storage Schema node to embed as a resource for input file ...
Could not find the Mapping node to embed as a resource for input file ...

Our resident build expert informed me the TFS build server did not have .NET 4.5 loaded.

To resolve the problem, I set the project properties to .NET 4.0 instead of .NET 4.5, regenerated my EDMX file/service, and successfully built/checked-in.

like image 196
Mike Avatar answered Nov 17 '22 01:11

Mike


Is .NET 4.5 installed on your server machine?

In my case, .NET 4.5 was not installed on the build server. Although @Mike's answer indicates that you can instead build against v4.0, simply installing the .NET framework 4.5 on the build server solved the issue for me.

like image 2
Maciej Avatar answered Nov 16 '22 23:11

Maciej