I've recently upgraded an Azure cloud service with a web role and worker role to v2.7 of the SDK.
Debugging locally works great.
When I try to publish from within VS 2015 Community, the process fails with an error in the build output:
6>Done building project "Cloud.ccproj" -- FAILED.
6>
6>Build FAILED.
========== Build: 5 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
Dropping down to msbuild I can see more verbose output and notice the following:
Failed to produce diagnostics extension's config for Cloud.WebRoleContent\diagnostics.wadcfgx.
Error : Value cannot be null. Parameter name: input
Removing the diagnostics.wadcfgx files from the web and worker roles actually solves this issue and allows me to publish, however I'd prefer to keep my diagnostics.
Adding them back in via the UI lands me at the same error as above.
Has anyone else come across this?
I don't remember the exact error we got but recently we had to add a storage account for diagnostics where previously we didn't. In your ServiceConfiguration you need a line like
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="...."/>
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