Entity Framework - Unable to load the specified metadata resource

前端 未结 17 1255
一生所求
一生所求 2020-12-14 15:21

I realise that this has been asked a number of times but I just can\'t seem to get the bottom of my issue. I\'m getting the following error stack:

17条回答
  •  -上瘾入骨i
    2020-12-14 15:55

    I am sharing my code with another developer and he had this problem.No connection string differences. All the files OK... I fixed it by setting

    • Metadata Artifact Processing from: "Embed in Output Assembly" to "Copy to output directory" ,
    • rebuilding the project,
    • and then setting it back again.

    This worked, I assume, because the individual files (CSDL/MSL/SSDL files) were created in the output directory when it used "copy to output directory". Apparently there was a bug that required them for the embedded version to work. Hope this helps :)

提交回复
热议问题