After deploying my MVC 4 application, I try to register the user, get this error:
Granting CREATE DATABASE permission in the "master" database.
Connection string:
<add name="Market" providerName="System.Data.SqlClient" connectionString="Data Source=endine.arvixe.com; Initial Catalog=Market; Uid=mylogin; Password=mypass; MultipleActiveResultSets=true; " />
And DbContext:
public class Market: DbContext { public Market() { Database.SetInitializer<Market>(new MarketInitializer()); } } public class MarketInitializer: DropCreateDatabaseIfModelChanges<Market> { protected override void Seed(Market context) { base.Seed(context); } }
I accessed the database using SQL Management Studio with the same mylogin and mypass , created the Market database with a script. But the site cannot access the database.
How can I find the reason?
user1664699
source share