Using the application project level VS2010 SP1, I created a simple database that I could:
CREATE TABLE [dbo].[Table1] ( column_1 int NOT NULL, column_2 int NULL )
Then I successfully built .dacpac and tested it by deploying it using SSMS 2008 R2 to a local instance of SQL Express (everything works fine).
Then I tried using SSMS 2008 R2 to deploy .dacpac on Azure SQL Server. The wizard managed to go through every step (including creating a database and creating a circuit), but failed at the last stage - "Register DACs in DAC metadata" - with the exception of IndexOutOfRangeException (see below).
I tried to do this against an existing Azure SQL Server, against a new Azure SQL Server (both refused with the same exception), and against an Azure SQL Server with an empty database with the same name (this failed with SSMS exception).
I have no ideas now. Any ideas on how to deploy .dacpacs for SQL Azure would be greatly appreciated.
System.IndexOutOfRangeException: The index was outside the array. at Microsoft.SqlServer.Management.Smo.SqlPropertyMetadataProvider.PropertyNameToIDLookupWithException (String propertyName, PropertyAccessPurpose pap) at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetDlSermerlSermeerlermeerlremerServermreerServerMlServerMlServerMlServerMerServerMerServerMlServerMerServerInlerServerMerServerInlServerMerServerInlServerMerServerInlServerInlServer Microsoft.SqlServer.Management.Smo.AbstractCollectionBase.get_StringComparer () in Microsoft.SqlServer.Management.Smo.SimpleObjectCollectionBase.InitInnerCollection () in Microsoft.SqlServer.Management.Smo.SmoCollectionBase.get_InternalQ SmoCollectionBase.GetObjectByKey (ObjectKeyBase key) in Microsoft.SqlServer.Management.Smo.DatabaseCollection.get_Item (String name) in Microsoft.SqlServer.Management.Dac.RegisterDacStep.Execute () in Microsoft.SqlServer.ManagementMan.ActionManation.DaT. TransactionalStep.DoExecute () in Microsoft.SqlServer.Management.Dac.TransactionalActionManager.ManagedActionStep.Execute () at Microsoft.SqlServer.Management.Dac.TransactionalActionManager.ExecuteActionSteps (IEnumerable`1 managedActionSteps) at Microsoft.SqlServer.Management.Dac.TransactionalActionManager.Go () at Microsoft.SqlServer.Management.Dac.DacSty.Type.Tan. DatabaseDeploymentProperties deployProperties, Boolean skipPolicyValidation, Boolean skipDacRegistration)
source share