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

前端 未结 12 1670
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-16 10:18

My connection strings are as follows:



        
12条回答
  •  半阙折子戏
    2020-12-16 11:12

    I was getting an exception like this. The problem was that I renamed my .edmx file and forgot to change the name in EF Web.config file's connection string:

    metadata=res://*/MyModel.csdl|res://*/MyModel.ssdl|res://*/MyModel.msl;
    

提交回复
热议问题