Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ColemanRocks opened this issue Jan 8, 2019 · 4 comments

Comments

@ColemanRocks
Copy link

ColemanRocks commented Jan 8, 2019

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)

@ajcvickers ajcvickers added this to the 3.0.0 milestone Jan 9, 2019
@ajcvickers
Copy link
Member

ajcvickers commented Jan 10, 2019

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.

@Psypher9
Copy link
Contributor

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

@bricelam bricelam removed this from the 5.0.0 milestone Aug 21, 2020
@ajcvickers
Copy link
Member

ajcvickers commented Aug 24, 2020

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.

@khanh1nt
Copy link

khanh1nt commented Aug 23, 2021

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.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants