I am using the PDFsharp (which is used to generate pdf file in asp.net), and got an error "Access to the path 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\Tax_receipt.pdf' is denied."
I guess it is trying to write file to this folder so I tried to add an ASPNET account with write permission to that folder. I use "computer name\ASPNET" which can't be found and "Network Service" which didn't work.
Does anyone know how to add permission?? Many thanks!!
edit:
I use MemoryStream instead of FileStream finally, and this will avoid to create physical file.