1
votes

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:

The website is ASP.NET MVC using Azure Storage for storing web pages (custom VirtualPathProvider is implemented)

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"

This is an Azure websites, nothing related to web roles, there's no reference to RoleEnvironment in my code at all.

Have search throughout Stackoverflow but haven't found an answer, someone help me out please...

When I look onto the event viewer from Azure's support portal, I find these

Error in the event viewer (surprisingly simple errors):

8400 w3wp Role environment . INITIALIZING


8400 w3wp Role environment . INITIALED RETURNED. HResult=-2147024891


8400 w3wp Role environment . FAILED TO INITIALIZE. hr: -2147024891

1
Can you include the exact errors you are getting? Also, where exactly are you seeing those errors?David Ebbo
hi I'm seeing this from Azure App Event View from via the azure portalLLida Weng
event details is really simple: 8400 w3wp Role environment . INITIALIZING and then following with another event log: 8400 w3wp Role environment . INITIALED RETURNED. HResult=-2147024891 Then the error: 8400 w3wp Role environment . FAILED TO INITIALIZE. hr: -2147024891Lida Weng
Can you share your site name, either directly or indirectly? This will help us investigate. Thanks!David Ebbo
Hi David, I've shortened the real site url to: goo.gl/NrD7ew you'll be able to get the url once you visit it, thanksLida Weng

1 Answers

0
votes

Looking at your VM, I see that it is constantly compiling views (I believe the same things all the time). My guess is that there is some issue in your VirtualPathProvider implementation that is disabling the caching. e.g. do you have a proper implementation of GetCacheKey?

You may want to try remote debugging to debug your VPP logic, which might give some clues.