Using Visual Studio 2008, I have published my ASP.NET website to my local disk in preparation for deploying to our test server. Using an RDP session, I’ve connected to the test server running Windows Server 2003, making my local disk available as a resource to the RDP session. When I attempt to copy the files from my local disk to the server, everything copies without issue except for the DLLs in the bin folder. Every time I try to copy a DLL I get the following error: “Cannot copy [filename]: Access is denied. Make sure the disk is not full or write-protected and that the file is not currently in use.” I am able to copy any file outside the bin folder and any file except DLLs in the bin folder (such as .compiled files).
It’s been a while since I’ve worked with IIS and ASP.NET so I’m admittedly a little rusty but I’ve tried everything I know of to fix the issue. I checked the obvious, there’s 3+ GB free on the disk, and the file is not write-protected.
I’ve also tried everything I can think of to make sure the files are not in use. I tried recycling the application pool, restarting the default web site, both restarting IIS and stopping/starting IIS using the GUI, ending the w3wp.exe process in task manager, Shift-deleting the file, deleting from the command prompt, having two other users attempt to delete the files using their login credentials, and restarting the server twice. Nothing at all has worked so far and I’m at my wit’s end.
Hoping someone has any suggestions on what else I can try to fix this, any help would be much appreciated.
Try stopping IIS from the command prompt, then restart and after restarting confirming that IIS is still stopped.
After confirmation of the above, zip the files, copy the zipped file over to your server and unzip. Run AV on the files, and you may need to “unlock” the zip.