Error “Access to the path ‘E:sitesrootWeb.config’ is denied” when storing Azure AD’s public key in Web.config of an Azure Cloud Services application.

I have worked on a scenario where a Web Role application which had been working fine for a long time just started throwing the error “Access to the path ‘E:\sitesroot\0\Web.config’ is denied” without any change or update to the deployment:        Looking at the error, it’s a bit clear that for some reason, the…


Automatically flushing DNS in Azure PaaS Cloud Services Instances

I have worked on a case where because a specific reason, it was needed to Flush DNS from the PaaS Cloud Service Instances each 8 hours. And this is completely possible, however, since we are talking about PaaS Cloud Services and we already know we can’t apply manual changes since the PaaS Instances are stateless,…


Cloud Services roles recycling with the error “System.IO.FileLoadException: Could not load file or assembly”

You may be facing an issue where after a deploy, your Cloud Service role gets stuck in “starting” or “recycling” states. In this case, as the initial troubleshooting steps, we have to remote access the instance, start checking the logs and try to find out evidences about what can be causing the issue. For an…


Installing DebugDiag and importing rules thru Azure Cloud Services startup tasks

This article describes the steps for how to install DebugDiag version 2 update 1 on Cloud Services Web and Worker Roles using startup tasks. Note: In this article, the steps were applied to a Worker Role, but it also works for Web Roles. Preparing the DebugDiag installer and the configuration file with the files Download DebugDiag Debug Diagnostic…