Skip to content

Why is aspnetcore looking for deps.json in production env? #38275

@geetmenon

Description

@geetmenon

I have explicitly turned of deps.json generation in my aspnetcore (.Net 5) web project via the following setting :
<GenerateDependencyFile>false</GenerateDependencyFile>
So my publish does not generate deps.json.

I am able to run being up my web app successfully in my dev environment. However in my production server, I get the error "HTTP Error 500.30 - ASP.NET Core app failed to start". On checking event viewer logs, I see the error "Could not find file deps.json".

My understanding is that deps.json is not really required in production env. So why is it looking for deps.json in my production env?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions