Tuesday, November 11, 2014

The model backing the 'ApplicationDbContext' context has changed

Server Error in '/' Application.

The model backing the 'ApplicationDbContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The model backing the 'ApplicationDbContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).

Source Error:


Line 156:            {
Line 157:                var user = new ApplicationUser { UserName = model.Email, Email = model.Email };
Line 158:                var result = await UserManager.CreateAsync(user, model.Password);
Line 159:                if (result.Succeeded)
Line 160:                {

No comments:

Post a Comment