Skip to content

The specified deps.json [\\\\TeamDrive\IT\Team Software\Project\etc...] does not exist #14349

Closed as not planned

Description

@ColemanRocks

Our projects execute from a network drive that begins with two slashes. i.e.
"\\TeamDrive\IT..."

When I attempt to run EF Core package manager console commands, it searches for required EF files in the wrong directory: "\\\\TeamDrive\IT..."

In this format with four slashes at the beginning of the path, the command is unable to navigate to the file location. I have confirmed that deps.json file exists in the proper location.

Steps to reproduce

Create a project and database on a drive beginning with two slashes.

Attempt to run EF console commands

Further technical details

EF Core version: (2.2.1)
Database Provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Operating system: Windows 10 Pro
IDE: (e.g. Visual Studio 2017 15.9.3)

Activity

  1. added this to the 3.0.0 milestone on Jan 9, 2019
  2. ajcvickers commented on Jan 10, 2019

    @ajcvickers
    Contributor

    From VS Feedback:

    when attempting to run any EF commands in the package manager console (scaffold-dbcontext, update-database, etc) it searchs for a file(s) called deps.json and claims it is missing. I have confirmed the file exists in the proper location however Visual Studios is adding additional "" characters due to improper string handling, thus changing the file path entirely.

    The database being targeted resides on a network drive with a path like: "\\IT\Server2\Team Software"

    the error returns that the folder searched was "\\\\IT\Server2\Team Sofware"

    As you can see, the string was escaped improperly and added two addition "\" characters.

  3. modified the milestones: 3.0.0, Backlog on Jun 21, 2019
  4. modified the milestones: Backlog, on Aug 21, 2019
  5. removed this from the milestone on Oct 11, 2019
  6. 6 remaining items

  7. Psypher9 commented on Dec 12, 2019

    @Psypher9
    Contributor

    This is related to #14781, I'm pretty sure.

  8. removed this from the 5.0.0 milestone on Aug 21, 2020
  9. ajcvickers commented on Aug 24, 2020

    @ajcvickers
    Contributor

    We can no longer reproduce this and believe that the underlying issue has been fixed. If you are still hitting this issue with EF Core 5.0 or later, then please file a new issue and attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing so that we can investigate.

  10. khanh1nt commented on Aug 23, 2021

    @khanh1nt

    This issue is still happening

    Our projects execute from a network drive that begins with two slashes. i.e.
    "\webserver\userdata$\admin..."

    When I attempt to run EF Core package manager console commands, it searches for required EF files in the wrong directory: "\webserver\userdata$\admin..."

    In this format with four slashes at the beginning of the path, the command is unable to navigate to the file location. I have confirmed that deps.json file exists in the proper location.
    (error msg: the specified deps.json [\\webserver\userdata$\admin<prj path>\bin\release\net5.0\demoefcore.deps.json] doesn't exist)

    Steps to reproduce
    Create a project and database on a drive beginning with two slashes.

    Attempt to run Scaffold-dbcontext

    Further technical details
    EF Core version: (5.0)
    Database Provider: Microsoft.EntityFrameworkCore.SqlServer
    Operating system: Windows 10 Pro
    IDE: (Visual Studio 2019 community 16.11.1)

    P/s: this worked perfectly on local drive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions