Code:
using (var context = new Storage())
{
User user = new User();
user = context.Users.FirstOrDefault(u => u.Email.Equals(username) && u.Password.Equals(password));
return user;
}
Exception Details
("A network-related or instance specific error occured while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50-local Database Runtime error occured. Cannot create an automatic instance. See the Windows Application event log for error details.")