Entity Framework - Unable to load the specified metadata resource

前端 未结 17 1285
一生所求
一生所求 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条回答
  •  佛祖请我去吃肉
    2020-12-14 15:51

    I was having the same issue

    System.Data.MetadataException: Unable to load the specified metadata resource

    It turned out the Connection string which was generated earlier had all the edmx's name on it. I took out all the model names from the connection string leaving only the below string in my metadata

    "metadata=res://*/;provider=System.Data.SqlClient;provider
    

    This worked for me.

提交回复
热议问题