我有一个asp.net核心2.0应用程序运行在完整的.net框架4.6.1。它工作正常,在当地,但是当我把它部署到Azure中我收到以下错误:FileLoadException:无法加载文件或程序集System.Runtime,版本= 4.2.0.0
FileLoadException: Could not load file or assembly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
在调试/ Release文件夹我有System.Runtime 4.1.2.0但不知何故,它的工作原理。
在“经典”.NET框架中,我用来将程序集重定向添加到app.config,但在这里我没有web.config。任何想法如何解决这个问题?
“我没有web.config”并不意味着你不能添加web.config。你尝试过吗? –
@LexLi - 也许我可以做到这一点,但它看起来像调试/发布文件夹我有System.Runtime版本= 4.1.2.0 - 由于某种原因,它在本地工作。 –