I am completely losing my mind over this as I have a lot of work to do and I can't accomplish anything right now. Something happened and now every time I try to run our project in the Windows Azure emulator via Visual Studio it pops up the error as in the question title.
"Windows Azure Tools for Visual Studio .cscfg and .csdef do not match"
I have not touched these files ever, I also reinstalled azure tools (several times!) in order to make sure they were completely default, and they are. I honestly am at a complete loss here, I have no idea what could be causing this. A google search for that error turned up absolutely no hits which is bizarre.
In Visual Studio, go in the Solution explorer panel, right-click on your Azure project and click on Package function. A process will generate the cspkg and cscfg files.
The default extension for the service configuration file is . cscfg. The service model is described by the Cloud Service (classic) Definition Schema. By default, the Azure Diagnostics configuration schema file is installed to the C:\Program Files\Microsoft SDKs\Windows Azure\.
Service configurations (. cscfg files) store settings for the deployment environments for an Azure cloud service. Azure uses these configuration files when it manages your cloud services.
cspkg is a zip file that is generated from the ServiceDefinition. csdef and among other things, contains all the required binary-based dependencies. Azure creates a cloud service from both the ServicePackage. cspkg and the ServiceConfig. cscfg.
For me it was an empty
<ConfigurationSettings>
</ConfigurationSettings>
block I had to insert into both my cscfg files.
I had the same problem.
To solve that I've changed the configuration from x86 to AnyCPU. It´s working fine now.
Hope it helps :)
I too experienced this problem and was frustrated with the lack of info on it. However, I found that the easy solution was to remove the role from the azure project and re-add it. Unless you have an insane amount of config settings to manage, this is a fairly quick and painless process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With