问题
Create a new ASP.NET 5 (MVC 6) app and deploy to Azure. You get the HTTP 500 exception. If you create a web.config file in the wwwroot folder with the following markup:
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
You get the the exception in the title.
回答1:
One way to get this error is to deploy a 64 bit version (either Core or x86) to a free or shared web app. If you create the azure web app in the publish dialog, VS creates a free web app (which doesn't support 64 bit).
回答2:
When you publish in Visual studio 2015 RC, in the publish web "setting": you should choose "dnx-clr-win-x64.1.0.0-beta4", not dnx-clr-win-x86.1.0.0-beta4.
来源:https://stackoverflow.com/questions/30316182/azure-deployment-could-not-load-file-or-assembly-dnx-clr-managed-or-one-of-i