Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Azure Tools for Visual Studio csdef and cscfg do not match

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.

like image 372
Kyle Sawatsky Avatar asked Jun 12 '12 02:06

Kyle Sawatsky


People also ask

How do I create a Cscfg file?

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.

What is Cscfg file?

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\.

Which is primary configuration file type used in 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.

What is cspkg file?

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.


3 Answers

For me it was an empty

<ConfigurationSettings>
</ConfigurationSettings>

block I had to insert into both my cscfg files.

like image 132
ckonig Avatar answered Sep 21 '22 05:09

ckonig


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 :)

like image 39
Murilo Maciel Curti Avatar answered Sep 22 '22 05:09

Murilo Maciel Curti


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.

like image 45
Chris Avatar answered Sep 19 '22 05:09

Chris