Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free
#

Error message: An assembly specified in the application dependencies manifest .deps.json was not found

 

Status: solved

 

Following error in detail:

Error:

  An assembly specified in the application dependencies manifest (AspCore2_01.deps.json) was not found:

    package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.2'

    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.6.xml

 

Cause of the error

The error occurs when installing an Asp.Net Core application on an IIS Internet server running Windows Server.

The AspNetCore version under the development environment in Visual Studio must have the same version as the AspNetCore hosting on the IIS web server.

 

 

Error display on the browser

when accessing the Asp.Net Core MVC website

HTTP Error 502.5 - Process Failure

Common causes of this issue:

  • The application process failed to start
  • The application process started but then stopped
  • The application process started but failed to listen on the configured port

Troubleshooting steps:

  • Check the system event log for error messages
  • Enable logging the application process' stdout messages
  • Attach a debugger to the application process and inspect

? Display of the detailed error

One finds the Asp Net Core error when installing an ASP Net Core application on the IIS server and activating Error logging in Web.config.

Following this, the internal Aspcore web server writes the error message to an stdout log file under the project in the / logs subdirectory.

 

The AspNetCore error says as in the example that a version dll does not exist.

An assembly specified in the application dependencies manifest (AspCore2_01.deps.json) was not found:

    package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.2'

    path: 'lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll'

 

 

remedy:

The reason is that the AspNetCore version under the development environment Visual Studio 2017 Community Edition is not exactly the same as the Runtime AspNetCore Hosting version.

One finds the current version, with which one developed the Asp.Net Core MVC project, by clicking in the VS Visual Studio on the project with Edit project.csproj

 

On the Windows Server with IIS, the same version must be installed for displaying Asp Core application.

Therefore you have to install the file DotNetCore.2.0.x-WindowsHosting.exe on the web server.

 

You can find the different versions below

https://www.Microsoft.com/net/download/dotnet-core/runtime-2.0.6 with the respective partial version.

Under Hosting Bundle Installer

 

This file version is called like

DotNetCore.2.0.6-1-WindowsHosting.exe

 

On the Windows server should be as long as the Internet server IIS off.

Then upload the file to the web server and start it by double-clicking on the installation.

 

Then turn on IIS again on the web server.

And open the site with Browse Browse

 

Then an asp.net core MVC application should start without any problems

 

System configuration:

IIS Server 10, 8.5

Windows Server 2016

Visual Studio Community Edition 2017

AspNetCore Windows 2.0.5 and 2.0.6 and 2.0.7

 

keywords:

Kestrel web server

Asp.Net Core 2 MVC

aspNet Core2

Mobile
»
Kestrel web server Asp.Net Core 2 MVC hangs
»
Asp Net Core MVC: Login failed for user IIS APPPOOL \ Readdy
»
Error message: An assembly specified in the application dependencies manifest was not found
»
Asp Core Error: Could not create stdoutLogFile
»
Finding bugs in Asp.Net Core 2 MVC applications.

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de