Advertisement
TankorSmash

Untitled

Jan 18th, 2013
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. PM> Update-Database
  2. Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
  3. Applying code-based migrations: [201301181921080_test1].
  4. Applying code-based migration: 201301181921080_test1.
  5. System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'UserProfile' in the database.
  6. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
  7. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
  8. at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
  9. at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
  10. at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout)
  11. at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
  12. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
  13. at System.Data.Entity.Migrations.DbMigrator.ExecuteSql(DbTransaction transaction, MigrationStatement migrationStatement)
  14. at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.ExecuteSql(DbTransaction transaction, MigrationStatement migrationStatement)
  15. at System.Data.Entity.Migrations.DbMigrator.ExecuteStatements(IEnumerable`1 migrationStatements)
  16. at System.Data.Entity.Migrations.Infrastructure.MigratorBase.ExecuteStatements(IEnumerable`1 migrationStatements)
  17. at System.Data.Entity.Migrations.DbMigrator.ExecuteOperations(String migrationId, XDocument targetModel, IEnumerable`1 operations, Boolean downgrading, Boolean auto)
  18. at System.Data.Entity.Migrations.DbMigrator.ApplyMigration(DbMigration migration, DbMigration lastMigration)
  19. at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.ApplyMigration(DbMigration migration, DbMigration lastMigration)
  20. at System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
  21. at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
  22. at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
  23. at System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update(String targetMigration)
  24. at System.Data.Entity.Migrations.Design.ToolingFacade.UpdateRunner.RunCore()
  25. at System.Data.Entity.Migrations.Design.ToolingFacade.BaseRunner.Run()
  26. ClientConnectionId:5e4eebb9-b602-408d-b03a-da38919d8fc9
  27. There is already an object named 'UserProfile' in the database.
  28. PM>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement