Unable to use the autoscalling block, exception ArgumentOutOfRangeException

Topics: Windows Azure Integration Pack
Dec 26, 2011 at 3:02 PM


I am trying to integrate the autoscalling block in to a worker role in order to auto scale another azure application.

My worker role is running the emulator environment on my computer.

I've edited the app.config of the worker role in order to have all the relevant configuration (Rule store, service information store etc...) to a storage in azure.

At the on start of the worker role just after the 
autoscaler = EnterpriseLibraryContainer.Current.GetInstance<Autoscaler>();

i see in the debug output the following:

A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.dllA first chance exception of type 'Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.DataPointsCollection.DataPointsCollectionException' occurred in Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.dll

Any help will be appreciated

More info will be provided if needed.


Dec 27, 2011 at 9:58 AM

i have resolved my problem. I needed to specify storageAccounts in the service information xml since i have referenced it from a role (in the xml)