Strange Access and Permission Denied errors
I'm currently running Windows 7, and I have been having a lot of trouble with it not allowing me to delete files or to compile things in Visual Studio because of permission denied or access errors. Here's just a screen I pulled from earlier today: Trouble deleting a folder after creating addon This is occurs frequently. Yesterday, after editing a batch script, when I went to save it, it said it couldn't save to the file because it was open elsewhere. I've been looking for a solution for this for a while now. It's especially annoying when I go to compile a program in Visual Studio 2008 SP1 and it gives me an "Unable to write file" error (i tried the pre-compile script and this only helps 20% of the time). As you can see from the screenshot, I am not running any AV at the moment so it could not be the AV. Besides, the AV would not take that long to analyze tiny files I don't think. This is a fresh new install with everything updated. After waiting about 2 minutes or so, I will receive complete access to the files again so that I can delete or compile. This delay is quite bothersome, though. If I recall correctly, wasn't there some sort of feature integrated that delayed file operations occasionally in order to speed up other portions of the system? Thanks
February 28th, 2010 9:51pm

This is starting to get really annoying. I can't do anything quickly, because it keeps saying permission denied. I have to wait 2 minutes in between file access.
Free Windows Admin Tool Kit Click here and download it now
February 28th, 2010 10:33pm

Hi,When you are using Visual Studio to compile files, I suggest you to turn off the UAC. In some cases, UAC will disturb the compiling. If you want to delete the folder, you can try the following steps.First, change ownership. Right-click any file or folder, select Properties, and go to Security tab. Now click the Advanced button.Next, you need to go to Owner tab and hit the Edit button. Then in the new dialog window choose the new owner and then click OK.If you are an administrator and cannot access a folder, this is due to permission error. To give complete permission to yourself, right-click the file or folder and select Properties. Now go to Security tab, and hit the Edit button.Here select your username(account) and check the Full Control checkbox. When done, hit OK. Note that when you will check the Full Control checkbox, all others will be automatically checked too.You can reset the permission to delete the folder. The specific steps are below:1. Please download the subinacl.msi file from the following link and save the installation patch onto the Desktop: http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en#AffinityDownloads2. Please go to the Desktop and double click the downloaded file.3. Please select the C:\Windows\System32 folder as the Destination Folder during the installation. Later we will use this tool to reset the permission settings on the current machine.4. Click the "Start" Button, in the "Start Search" bar, type: "notepad" (without quotes) and press Enter. 5. Copy the following commands and then paste them into the opened Notepad window: @echo off subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=fsubinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=fsubinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=fsubinacl /subdirectories %SystemDrive% /grant=administrators=fsubinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=fsubinacl /subkeyreg HKEY_CURRENT_USER /grant=system=fsubinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=fsubinacl /subdirectories %SystemDrive% /grant=system=f @Echo =========================@Echo Finished. @Echo =========================@pause 6. After pasting the above commands, please close the Notepad window. Choose "Save" when you are prompted to save the file. Type "reset.bat" as the file name and choose "Desktop" from the left panel as the save location.7. Refer to the Desktop and right click the reset.bat file, then choose "Run as administrator." 8. You will see a DOS-like window processing. NOTE: It may take several minutes, please be patient. When it is finished, you will be prompted with the message: "Finished, press any key to continue". If it doesn’t work, you can download a LockHunter to help. You can refer to here to get a help: http://lockhunter.com/ If you have any problems, please post here.
March 1st, 2010 11:55am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics