Azure websites complaining Role environment . FAILED TO INITIALIZE

痴心易碎 提交于 2019-12-11 10:06:56

问题


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:


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.



来源:https://stackoverflow.com/questions/34226474/azure-websites-complaining-role-environment-failed-to-initialize

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!