Skip to content

Networksshare #2

Open
Open

Description

@bethgocs

Hi,

trying "z:>DeZoner.exe --get --recurse -d=K:\somepath\datadir" I get the error below.

Unbehandelte Ausnahme: System.IO.IOException: Unerwarteter Netzwerkfehler.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileSystemEnumerableIterator1.AddSearchableDirsToStack(SearchData localSearchData) bei System.IO.FileSystemEnumerableIterator1.MoveNext()
bei System.Collections.Generic.List1..ctor(IEnumerable1 collection)
bei System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
bei DeZoner.Program.Main(String[] args) in z:\temp\UnblockFiles\DeZoner\Program.cs:Zeile 48.

This happen only on a mounted netshare. Local disks work fine.

Thx in advance

/O

Activity

  1. arcdev commented on Mar 9, 2019

    @arcdev
    Owner

    Admittedly, I haven't studied German in over 18 years... but it appears that the app simply can't read the K:\somepath\datadir.
    The point in the code where you've encountered this error is fairly direct System.IO.Directory.GetFiles which leads me to believe this is an error in network communication (stability) and/or in network authentication (think: login).

    I'd recommend writing a very quick small app to do exactly that line of code that's failing, which should be something like:
    System.IO.Directory.GetFiles(@"K:\somepath\datadir", "*.*", SearchOption.AllDirectories
    and see what results you get.

    Another option is to try the PowerShell command Unblock-File [link]

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

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