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;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…