none
Directory.GetFiles gets IOException with The network path was not found RRS feed

  • Question

  • var fileNames = Directory.GetFiles(

    @"\\spillway\it\ei\lists\repository_xmlschemas1\Attachments",

    "*.xsd",

    SearchOption.AllDirectories);

    If I run after a boot of Windows 7 I get an IOException with the message 'The network path was not found'. If I first open Windows Explorer to that share then the GetFiles works without error.

    How do I establish a connection to that share from within my .NET application?

    Thanks,

    Tuesday, July 17, 2012 3:56 PM

Answers

All replies