Author: patientd1 | Posted on: 6/23/2010 7:06:42 PM | Views : 9469

Error: The filename, directory name, or volume label syntax is incorrect.

From the stack Trace it looks like a security problem, because the path exists on the server. Please Help.

I have report files on a remote file server (c-n-one\Reports\pdf\). I have to write c# code to download pdf file from a file server to save locally on client machine.

On my web.config I created a key as follows:


<add key ="PDFFileServer" value="\\c-n-one\Reports\pdf\"/>

The code in my download function is as follows:


protected void SaveReportsLocally(String CaseNosString)
Go to the complete details ...