I have a ConsoleApp (not asp.net) that takes files from directories (The app runs on Windows Server 2012). The app works fine with local dirs and even shared dirs (ex. "\\MyShare\dest"). However, when i map the share (from "\\MyShare to X:) i get
DirectoryNotFoundException.
I have to map the drive because some of the files are exceeding the 260 letters limit. Furthermore, when i debug my app on my pc, i don't get an error while accessing the mapped drive.
Thanks in advance for any help :)
P.S: i've seen other posts that the problem is the app doesn't run as the right user privileges. My app runs with my credentials so the map exists for my user..
EDIT: i did a little workaround with your help and it worked. Instead of creating a mapped network drive i used the mklink
command and it made a shortcut for my share:
mklink /D c:\MyShortcut \\MyShare
Thanks for the help everyone