Windows Azure - current service model out of sync

When I run the Windows Azure web role in my local developer framework, I get the following error:

"The current service model is not synchronized. Verify that the service configuration files and definitions are valid.

What ideas might come up?

+52
visual-studio-2010 azure azure-web-roles
Jul 18 2018-12-18T00:
source share
13 answers

One of my colleagues hit this problem, and after a short conversation 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 synchronized, it all worked.

The board will use the graphical interface in Visual Studio to add new parameters at the same time. The GUI can be accessed by right-clicking the web role properties and selection properties. This should open a window. Click on the "Settings" tab on the left.

Hope this helps

+58
Jul 18 2018-12-18T00:
source share
— -

For me, this was due to the fact that my azure project was copied from one computer to another (from Win 7 to Win 8.1 in the process). I use VS 2013 Community Edition for both, but I upgraded from Azure 2.4 on Win7 to Azure 2.5 on a Win 8.1 machine.

If you unload the azure project and edit the csproj file, you just need to do a little editing (for example, add a comment) and save it so that it overwrites itself. This was fixed in my case (where I checked the age by checking for errors in the CSDEF and CSCFG files). As soon as I re-saved the csproj file, it worked fine.

+12
Jan 21 '15 at 11:57
source share

I followed all the answers here, and it still didn't work, in the end I restarted the visual studio and it worked.

I believe the solution was a combination of one or more answers here + restarting VS

+11
Sep 16 '15 at 14:07
source share

What worked for me was:

  • Make sure that the cloud services files .cscfg and .Local.cscfg identical (if you do not need your Local.cscfg to have some differences for debugging purposes),
  • Verify that the .csdef file contains definitions that match the .cscfg files, and then
  • Close the project and delete its .ccproj.user cloud services .ccproj.user .

After rebooting the project, everything was fine.

+8
Apr 26 '16 at 11:09
source share

This happened to me because in one of my cloud configuration files (.cscfg) there were some key-value pairs that were defined in ServiceDefinition.csdef.

Moving files manually was painful. There is an easy way to detect discrepancies:

  • In Solution Explorer, right-click one of the roles that make up your cloud service and click Properties on the shortcut menu.

    enter image description here

  • A gray color appears in the role properties window with an error message:

    "Incorrect service definition or service configuration. Error list for more details."

  • Open the "Error List" window, and in some cases you should be able to see a list of specific discrepancies, complete with the file and property names.

    enter image description here

+6
Jan 08 '15 at 12:50
source share

An error can occur if there is no actual malfunction in the service configurations. If this happens and everything seems to be correct, instead of restarting the visual studio, just unload the azurecloud project (rightclick: unload proecjt

+4
Sep 19 '16 at 6:32
source share

I had the same problem and tried several answers on this page, including modifying the project file. At first, I made sure that there were no errors or inconsistencies in the cscfg and cfdef files. What finally resolved this for me is to do as Danfromisrael believes: restart VS.

+2
Dec 18 '15 at 9:46
source share

He solved my problem by restarting VS as suggested by @danfromisrael.

Thanks danfromisrael.

+1
Apr 13 '16 at 5:02
source share

Please cross over the ServiceConfiguration.Cloud.cscfg and ServiceConfiguration.Local.cscfg files. My problem was that I added the configuration to Local.cscfg , but forgot to add the same to Cloud.cscfg

+1
May 17 '17 at 10:23
source share

I also had this problem. My problem was the wrong certificate definition in the csdef file.

0
May 18 '14 at 12:38
source share

If this problem - no errors. I found that for some bizarre reason, if the parameter is:

 <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true" /> 

was commented, then the worker did not start.

0
Sep 17 '15 at 14:08
source share

May help others:

For me, the problem was that the Wi-Fi that I used blocked the use of PORT Azure, changing Wifi solved this problem.

0
Jan 11 '16 at 11:10
source share

For me, the vmName problem in the mismatch between the vmName value I assigned to one of my roles in different environments. I have * .cscfg files for my development, testing, and production environment. Each of them had a definition of a role that was supposed to correspond

  <Role name="HardWorker" vmName="SomeName">...</Role> 

but one had a record like

  <Role name="HardWorker" vmName="SomeOtherName">...</Role> 

and this, apparently, was enough to cause an error.

0
Jun 06 '19 at 23:27
source share



All Articles