I am using Visual Studio 2012 RC with a trial license without any problems. Yesterday I bought Visual Studio 2012 Professional, installed the latest version and installed update 1.
I have a solution / project that I have been working on for many years. It has many migrations. I ran the first add-migration TableX_NewField and update-database -sourcemigration:TableX_PreviousNewField in this latest version.
Both of them ran without problems.
Then I ran update-database -script -sourcemigration:TableX_PreviousNewField and got the following:
PM> update-database -script -sourcemigration:TableX_PreviousNewField Applying code-based migrations: [201301151003149_TableX_NewField]. Applying code-based migration: 201301151003149_TableX_NewField. System.Runtime.InteropServices.COMException (0x8004000C): User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED)) at EnvDTE.ItemOperations.OpenFile(String FileName, String ViewKind) at System.Data.Entity.Migrations.Utilities.DomainDispatcher.OpenFile(String fileName) at System.Data.Entity.Migrations.Utilities.DomainDispatcher.OpenFile(String fileName) at System.Data.Entity.Migrations.Extensions.ProjectExtensions.NewSqlFile(Project project, String contents) at System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0() at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command) User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED))
I ran updates for Windows. Checked for updates using NuGet. Rebooted the computer. There is still a mistake.
entity-framework-5 entity-framework code-first-migrations ef-migrations
Sean Newcome Jan 15 '13 at 12:56
source share