My connection strings are as follows:
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:
.edmx
Web.config
metadata=res://*/MyModel.csdl|res://*/MyModel.ssdl|res://*/MyModel.msl;