Unable to use the autoscalling block, exception ArgumentOutOfRangeException

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

Hi,

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.

Thanks.

Dec 27, 2011 at 8:58 AM

Hi,
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)

Thanks
Shay.