I'm using File.Copy() to copy a file from the local filesystem to a mapped network drive. (I'd like to use UNC, but couldn't get it to work. I suspect that both problems are the same.)
This works when I step through the code. When I simply run, I get an exception, "could not find a part of the path".
I strongly suspect permissions, though the share is set to Full Control for everyone. I know that .NET has it's own issues with "trusted network shares".
This is a C# console application. What's the answer? Is there something I can put in the app.config file to trust the network share? Would that allow me to use UNC? Do I need to use impersonation?
Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
This works when I step through the code. When I simply run, I get an exception, "could not find a part of the path".
I strongly suspect permissions, though the share is set to Full Control for everyone. I know that .NET has it's own issues with "trusted network shares".
This is a C# console application. What's the answer? Is there something I can put in the app.config file to trust the network share? Would that allow me to use UNC? Do I need to use impersonation?
Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting