Posted on: 6/9/2014 2:04:33 AM | Views : 411

Hello everyone and thanks for your help in advance.  I am migrating a web application from Windows Server 2003 to Windows Server 2012.  One of the pages reads PDF files stored on the server and writes it to the browser.  The files are printed by users to PDF files using CutePDF.  A help function then moves these PDF files into the appropriate folders where they can be read by the application.  This worked fine on the Windows 2003, but any new file moved into these folders cannot be read, giving me a  
System.UnauthorizedAccessException: Access to the path "c:\test.pdf" error.  When I manually add Network Services to this file, the application works fine.  I then went to the main folder and added Network Services to the main folder and all subfolders and files.  Any existing file in these folders can now be accessed by the web application, however, new files copied into these folders cannot be read until I manually ...

Go to the complete details ...