Windows Azure - The current service model is out of sync

Tariq picture Tariq · Jul 18, 2012 · Viewed 10.3k times · Source

When I run a Windows Azure web role on my local developer fabric, I get the following error:

"The current service model is out of sync. Make sure both the service configuration and definition files are valid."

Any ideas what the problem could be?

Answer

Tariq picture Tariq · Jul 18, 2012

One of my colleagues hit this issue and after a bit of playing about, the problem was that the two service configuration files (cloud and local) had a different number of Settings.

When he updated the configuration files so that they were in sync it all worked.

A tip would be to use the GUI in Visual Studio to add new settings to both at the same time. The GUI can be accessed by right clicking the web role and selection properties. This should open up a window. Click the Settings tab on the left.

Hope it helps