I have an ASP.NET application where my client has moved from Microsoft Server 2008 R2 to Microsoft Server 2012. My application saves and removes files from a local folder that we give permissions on. This works fine, I can add and remove uploaded files with ease.
The problem is, that any of the files that were uploaded from the old Server and copied over to the new server, they get an Access Denied when IIS tries to remove it. Now, like I said I can upload and remove new files without any problems. It is the old files that were uploaded to the old server and transferred over to the new server that will give the error.
Can anyone point me in the right direction as to how we can setup the permissions on these files so they can be accessed correctly on the new server?
Thanks, Cory
Most likely the files where copied with old permissions. Try following on the new server:
This should give all the old files the same permissions as new files.