bool a = File.Exists(archiveDetail["downloadPath"]);
The a is always set to false, even when the file specified is present in the location, when I debug and copy the file path and paste it in the explorer the file is present and its opening, but this methods returns false. Also the length file path is 309 characters, is that the cause of this?
Should the length of the file path be less than 260 characters? Also I have changed the app.confing to consider the files with long paths :
<runtime>
<AppContextSwitchOverrides value="Switch.System.IO.UseLegacyPathHandling=false;Switch.System.IO.BlockLongPaths=false" />
</runtime>
Why is File.Exists() returning false?
Tried to handle the file paths with more than 260 characters. P.S - the length of the name of file is 134 characters.
I also have tried this [link] Still not working though.
This is the path generated when debugged, when I paste this in explorer the file opens :
C:\Users\a.bhis\Documents\GitHub\Solutio-2000\Solutio\Solutio\Content\SDKs\web\Z10_\Solutions_ZC_265\Zrbeqtqdqkuqenle\SolutionExploer\ABC Privateino\Bhar\CasisInfo\ddtp___p123palsis01.extern_botgurndne_comfi_handbuerer_silly_zzp-e.nsf_5_ZZ73860ZZEZZZ8CZ6701244Z4646_$file_Lassiv+BN2+11-1999.pdf