Skip to content

Running as docker container throws " An assembly specified in the application dependencies manifest (Asp2017.deps.json) was not found" #486

@jinnabaalu

Description

@jinnabaalu

I have followed this steps to create Docker image and run as

Publish

dotnet publish -c Release

Created Dockerfile in bin/Release/netcoreapp2.0/publish with

FROM microsoft/dotnet:2.0-runtime
WORKDIR /app
COPY . .
CMD ASPNETCORE_URLS=http://*:$PORT dotnet Asp2017.dll

Created Docker image with

docker build -t dotnetcoreapi ./bin/Release/netcoreapp2.0/publish

Running using

docker run -p 8009:5000 dotnetcoreapi

ERROR

An assembly specified in the application dependencies manifest (Asp2017.deps.json) was not found:
    package: 'Microsoft.ApplicationInsights.AspNetCore', version: '2.1.1'
    path: 'lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.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.0-linux-x64.xml;aspnetcore-store-2.0.0-osx-x64.xml;aspnetcore-store-2.0.0-win7-x64.xml;aspnetcore-store-2.0.0-win7-x86.xml

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions