title: Azure websites complaining Role environment . FAILED TO INITIALIZE
body: <p>I'm having headaches with Azure website deployment at the moment, someone help please - it has taken me 2 days trying to figure out what exactly has gone wrong:</p>
  
  <p>The website is ASP.NET MVC using Azure Storage for storing web pages (custom VirtualPathProvider is implemented)</p>
  
  <p>It works perfectly on my local PC however once I deploy it to Azure website, it hangs forever - and when checking the diagnoiss (XXX.scm.azurewebsites.net)  there are full loads of errors complaining "Role environment . FAILED TO INITIALIZE" </p>
  
  <p>This is an Azure websites, nothing related to web roles, there's no reference to RoleEnvironment in my code at all.</p>
  
  <p>Have search throughout Stackoverflow but haven't found an answer,  someone help me out please...</p>
  
  <p>When I look onto the event viewer from Azure's support portal, I find these</p>
  
  <p>Error in the event viewer (surprisingly simple errors):</p>
  
  <p>8400
  w3wp
  Role environment . INITIALIZING</p>
  
  <hr>
  
  <p>8400
  w3wp
  Role environment . INITIALED RETURNED. HResult=-2147024891</p>
  
  <hr>
  
  <p>8400
  w3wp
  Role environment . FAILED TO INITIALIZE. hr: -2147024891</p>