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

Windows 10: Access to the path 'C:\Documents and Settings' is denied ? #728

Closed
Thorium opened this issue Mar 27, 2015 · 10 comments
Closed

Comments

@Thorium
Copy link
Member

Thorium commented Mar 27, 2015

Do you know what is this:

C:\git\MyProject>packages\Paket.0.35.12\tools\paket.exe convert-from-nuget --verbose
Paket version 0.35.12.0
Paket failed with:
        Access to the path 'C:\Documents and Settings' is denied.
StackTrace:
     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.AddSearchableDirsToStack(SearchData localSearchData)
   at System.IO.FileSystemEnumerableIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption)
   at Paket.NuGetConvert.NugetEnvModule.read(DirectoryInfo rootDirectory)
   at Paket.NuGetConvert.convertR@323-1.Invoke(CredsMigrationMode _arg1)
   at Chessie.ErrorHandling.Trial.fSuccess@63-11[p,r,q](FSharpFunc`2 f, p x, FSharpList`1 msgs)
   at <StartupCode$Paket-Core>.$PublicAPI.ConvertFromNuget@65.Invoke(Unit unitVar0)
   at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc`2 action)
   at Paket.Program.clo@188-9.Invoke(ArgParseResults`1 results)
   at Paket.Program.processWithValidation[T](FSharpFunc`2 validateF, FSharpFunc`2 commandF, Command command, String[] ar
gs)
   at Paket.Program.processCommand@59-1.Invoke(Command command, String[] args)
   at <StartupCode$paket>.$Paket.Program.main@()

I'm using admin level command prompt on Windows 10 CTP.

@forki
Copy link
Member

forki commented Mar 27, 2015

/cc @theimowski

@theimowski
Copy link
Member

Is the same reproducable on Windows 7/8 ? I don't have 10 installed to test

@Thorium Thorium changed the title Access to the path 'C:\Documents and Settings' is denied ? Windows 10: Access to the path 'C:\Documents and Settings' is denied ? Mar 27, 2015
@Thorium
Copy link
Member Author

Thorium commented Mar 27, 2015

No, Windows 8 seems to work fine. :-)
Ok, I can live with this.

@Thorium Thorium closed this as completed Mar 27, 2015
@forki
Copy link
Member

forki commented Mar 27, 2015

Mhm would be still nice to understand the issue. I have a gut feeling that
this will hit us again
On Mar 27, 2015 4:00 PM, "Tuomas Hietanen" notifications@github.com wrote:

No, Windows 8 seems to work fine. :-)
Ok, I can live with this.


Reply to this email directly or view it on GitHub
#728 (comment).

@Thorium
Copy link
Member Author

Thorium commented Mar 27, 2015

Ok. I found the reason, and it was not Windows 10.

Now, in the first try Paket calls PaketEnv.locatePaketRootDirectory which yields sequence:
C:\git\MyProject\paket.dependencies
C:\git\paket.dependencies
C:\paket.dependencies
...and assumes to take first, which should not be found.

But I had old backup of paket.dependencies in my C:\ folder, haha, so Paket tries to scan my whole C: -drive for dependencies. When I deleted the file, everything goes ok.

@theimowski
Copy link
Member

maybe worth a warning?

@forki
Copy link
Member

forki commented Mar 27, 2015

I'm not sure how/when to warn here
On Mar 27, 2015 5:31 PM, "Tomasz Heimowski" notifications@github.com
wrote:

maybe worth a warning?


Reply to this email directly or view it on GitHub
#728 (comment).

@theimowski
Copy link
Member

or probably just a log message like for other commands found dependencies file in "C:\paket.dependencies"

@forki
Copy link
Member

forki commented Mar 27, 2015

That's logged in verbose mode
On Mar 27, 2015 5:34 PM, "Tomasz Heimowski" notifications@github.com
wrote:

or probably just a log message like for other commands found dependencies
file in "C:\paket.dependencies"


Reply to this email directly or view it on GitHub
#728 (comment).

@avdaredevil
Copy link

This might help: Document & Settings is a legacy NTFS junction point that points to C:\Users. Directly accessing the correct location would be recommended.

Link: http://www.sevenforums.com/general-discussion/100080-access-denied-documents-settings.html. It's a known windows 10 thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants