System.Data.MetadataException: Unable to load the specified metadata resource
The easiest solution that resolved this for me was to remove the obj folder which sit at the same level as the bin folder and re-run the application, my god it took way longer than it needed
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;