Without changing any code I am getting wierd errors after updating visual studio 2015. Basically its saying:
An exception of type 'System.Data.Entity.Core.EntityException'
occurred in EntityFramework.SqlServer.dll but was not handled in user code
Additional information: The underlying provider failed on Open.
Unhandled Exception Error - Login Failed for User
When trying to access the DataBase. I am using SQL server 2014, and have changed no code in solution and changed nothing in SQL Server MS, it must be related to the latest update for visual studio released around 15/12/15. I can access the database from SQL Server ok, and can see all setting etc. But as i said I have changed nothing at all, just updated visual studio.
Has anyone else encountered this error in last few days? It is very strange, and seems unusual as im only trying to access local DB .\SQLEXPRESS
This is method where error occurs:
private static string GetSchemaVersion()
{
var dataRepository = new GenericRepository();
return dataRepository.GetAll<SchemaVersion>().Max(s => s.CurrentVersion).ToString();
}