I have this error when deploying app. Could not find a part of the path 'c:\windows\system32\inetsrv\~\App_Data\xxxx.pdf'.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\App_Data\XXXX.pdf'.
the app default method is to redirect to pdf file.
this is my code
FileStream fs = new FileStream("~/App_Data/xxx.pdf", FileMode.Create);
Document doc = new Document(PageSize.A4, 25, 25, 30, 30);
doc.SetMargins(40f, 40f, 40f, 20f);
PdfWriter writer = PdfWriter.GetInstance(doc, fs);
doc.Open();
plz any help?
thanks,