问题
I tried creating an Azure project in Visual Studio 2012 Ultimate with a single MVC4 web role in it but got this error message.
 
The project itself after creating didn't contain the MVC4 role I wanted. I only found similar error messages for MVC2 and on my other computer it works fine.
回答1:
The roletemplatedata.xml file is a file included in each Windows Azure project in Visual Studio (ie: Web Roles with MVC3, MVC4, WCF, ...). You should be able to find it under C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplatesCache\CloudService.
If you can't find this file there is probably something wrong with the installation of the Windows Azure SDK (VS2012 tools). Try to uninstall every Windows Azure component, download the latest version of the full installer here (install the SDK link) and install it again. This should fix your problem.
来源:https://stackoverflow.com/questions/12686488/unable-to-create-mvc4-web-role-for-azure-project