DirectoryCatalog fails to create the catalog if the path is network based.

The DirectoryCatalog constructor that takes a path fails when the path is on a network. I have tried both ways \\machinename\sharename\.... and also a drive allocation on machine such as z:\ is \\machinename\sharename. I am trying to debug my code from my
PC running VS2008 on my PC and trying to debug my bits on an instrument, (remote debugging through msvcmon). In my VS2008 i set the debug settings to point to my share folder that contains the bits. The following is the exception i get.

Is it absolutely necessary that you access the files on a network share? In general we recommend that folks that need to access network files copy those down to a local cache rather than access of the network. This way you avoid any file locks which would
prevent the network files from being update. Also depending on the version of .NET you are running, there are CAS issues when accessing remote files. Do you have .NET 3.5 or .NET 3.5 SP1?

Thanks for your replies everybody. I did track the exception down to the call

Directory.GetFiles()... in DirectoryCatalog. I am not sure why it fails there.

I modified my code to not use the DirectoryCatalog, and do my own directory traversal and searching to find the assemblies again using the same API

directory.GetFiles() and then create the AssemblyCatalog's from the list of files i found. Interestingly when i run it with this change it is happy and no exceptions. I will look into the links you sent and see if i can find more.

Was the path correct? It looks like you've duplicated a portion of it: 'Z:\\BENTO\\DEV\\ATLAS1\\BENTO\\DEV\\ATLAS1\\BENTO\\SIGNALSOLUTION\\BENTO\\MAINAPPLICATION\\BIN\\DEBUG\\APPLICATIONS\\DIGITALVIDEOFEATURE'