Azure App Service recently started throwing an error: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.1.4.0
Azure App Service recently started throwing an error: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.1.4.0
我没有做任何更改,我的 Azure 应用服务开始抛出错误:
An error occurred while starting the application.
FileLoadException: Could not load file or assembly'Microsoft.EntityFrameworkCore, Version=2.1.4.0 ...
这看起来很奇怪,所以我尝试用 Nuget 添加 Microsoft.EntityFrameworkCore v2.1.4,然后我只得到一个带有
的白色错误屏幕
This page isn’t working
[WEBSITE] is currently unable to handle this request.
HTTP ERROR 500
没有其他错误。
这一切在本地都运行良好(一如既往...) - 我不确定从这里到哪里去?有任何想法吗?谢谢。
错误是因为包之间的版本不同。
请在PM中使用此命令。
Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design -Version 2.0.3
更多详情,您可以参考这篇issue。
我没有做任何更改,我的 Azure 应用服务开始抛出错误:
An error occurred while starting the application.
FileLoadException: Could not load file or assembly'Microsoft.EntityFrameworkCore, Version=2.1.4.0 ...
这看起来很奇怪,所以我尝试用 Nuget 添加 Microsoft.EntityFrameworkCore v2.1.4,然后我只得到一个带有
的白色错误屏幕This page isn’t working
[WEBSITE] is currently unable to handle this request.
HTTP ERROR 500
没有其他错误。
这一切在本地都运行良好(一如既往...) - 我不确定从这里到哪里去?有任何想法吗?谢谢。
错误是因为包之间的版本不同。 请在PM中使用此命令。
Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design -Version 2.0.3
更多详情,您可以参考这篇issue。