IIS with Asp.net core 2.0 - Error 502.5? IIS does not recognize Asp.net core 2.0

Asked

Viewed 1,891 times

0

I have the project on the computer, and the same on the computer of the colleagues runs with the IIS. But on my pc, it does not run, gives the error HTTP Error 502.5 - Process Failure

I generated the error log:

Error:
  An assembly specified in the application dependencies manifest (Projeto.Api.deps.json) was not found:
    package: 'Microsoft.AspNetCore.ApplicationInsights.HostingStartup', version: '2.1.0'
    path: 'lib/netcoreapp2.1/Microsoft.AspNetCore.ApplicationInsights.HostingStartup.dll'

I already installed:

inserir a descrição da imagem aqui

What can I do? How to solve the problem?

  • Try giving a dotnet Store before publishing.

  • When publishing works, just does not run the project in editing.

1 answer

0


To correct this error the following steps have been done:

Install the versions of: (https://dotnet.microsoft.com/download/dotnet-core) .NET Core 2.1

Build apps - SDK: dotnet-sdk-2.1.402-win-x64

Run apps - Runtime : dotnet-hosting-2.1.11-win

In Visual Studio, make sure that Individual Components related to Net.Core (C#) are installed:

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

After these steps, it spun ok.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.