Azure websites complaining Role environment . FAILED TO INITIALIZE on startup
<p>my question is similar to <a href="https://stackoverflow.com/questions/34226474/azure-webistes-complaining-role-environment-failed-to-initialize?rq=1">Azure websites complaining Role environment . FAILED TO INITIALIZE</a></p>

<p>Error that I see in the Azure  App Service Support Event Viewer:</p>

<p>"
9236
w3wp
Role environment . FAILED TO INITIALIZE. hr: -2147024891
"</p>

<p>It happens every single time on startup of the website. Other than that - website functions just fine. Except, randomly (it might take 10-30 minutes) it stops with "The application was terminated." (i see this error through azure application logs). I am not sure if these two things are related, but I am trying to first fix the "FAILED TO INITIALIZE" issue.</p>

<p>I don't have references to RoleEnvironment anywhere in my code (some users on StackOverflow mentioned that this might be an issue). </p>

<p>I read through many posts but none seem to work for my case.</p>