我在IIS 10中发布时遇到错误。
Asp.net Mvc Core 2.0应用程序。
Error:
An assembly specified in the application dependencies manifest (Hegic.TwoWheeler.Web.deps.json) was not found:
package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.3'
path: 'lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll'
This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:
aspnetcore-store-2.0.8.xml
先谢谢你。
答案 0 :(得分:0)
确保您的主机上安装了最新的.net核心运行时
如果问题仍然存在,请编辑项目文件并设置以下内容:
<PropertyGroup>
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
</PropertyGroup>
答案 1 :(得分:-1)
上个月我遇到了502错误,但我发现自今天起我需要更新Dotnet SDK Runtime Installer
版本2.0.6。