I updated MVC4 to MVC5. When you run the application I got an error that I don\'t have WebMatrix.Data. I installed it PM> Install-Package WebMatrix.Data
WebMatrix.Data
PM> Install-Package WebMatrix.Data
from your package manager console I can see that your project has Successfully added 'WebMatrix.Data 2.0.30506.0' to xxx.`
So get your web.config in sync with WebMatrix.Data 2.0.30506.0