I'm trying to create a database using Entity Framework with a code-first approach, but it fails on creating the database with this exception:
Unhandled Exception: System.Data.DataException:
An exception occurred while initializing the database. See the InnerException for details.System.Data.Entity.Core.EntityException: The underlying provider failed on Open.
System.Data.SqlClient.SqlException: Cannot open database "X.Xcontext" requested by the login. The login failed. Login failed for user 'This-PC\ME'.
Any idea how to resolve this ?