简体   繁体   中英

I am facing HTTP Error 502.5 error while publishing Dotnet core 2.0 mvc application in IIS 10

I am getting below error while publishing in IIS 10.

Asp.net Mvc Core 2.0 application.

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

ThankYou in Advance.

Ensure you have latest .net core runtime installed on your hosting machine

.NET Core runtimes

If issue persists edit project file and set the following:


<PropertyGroup>
  <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
</PropertyGroup>

I've experienced 502 error last month, but I've found out that I need an updated Dotnet SDK Runtime Installer version 2.0.6 as of today.

You can find it here (.NET Core Runtime 2.0.6 Download Page)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM