Azure deployment : Could not load file or assembly 'dnx.clr.managed' or one of its dependencies. The system cannot find the file specified

二次信任 提交于 2019-12-25 00:35:53

问题


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

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