Alright, I've given up on everything. I am working on multiple applications. I can't seem to find the proper way to get this working. No matter WHAT I do, I get access denied errors. I've switched user accounts on Windows 7, I've reset permissions, etc.
Sometimes the project will compile and run fine. I'll edit some code, and hit F5 and it'll say "Unable to copy file to file" etc. I'll delete the file and sometimes it'll work. But it's getting worse - after I delete the file and I hit "F5" it'll show a quick loading cursor then nothing happens. The project doesn't even attempt to start. If I wait 5 minutes and hit F5, it'll start right up no issues.
Error 2 Unable to copy file "obj\x86\Debug\project.exe" to "bin\Debug\project.exe". Access to the path 'bin\Debug\project.exe' is denied.
Checking the task manager, the application isn't stuck open. Nothing is excessively stealing RAM or CPU. The app open and closes fine.
Error 1 Unable to copy file "obj\x86\Debug\project.exe" to "bin\Debug\project.exe". The process cannot access the file 'bin\Debug\project.exe' because it is being used by another process.
ANY kinds of ideas? I'm seriously giving up on it! It's killed me all night and slowed me down. My code is pointing to a blank form. I've removed ALL code. Same issue. This is .NET framework 4.0 x86.
When I delete the file, and hit F5, that's when I get the error. Sometimes it won't open. It's random. I'm using a fresh version of VS 2010 with latest updates SP1 (ultimate)
The weird thing is when it gets access denied, Windows denies my access 100%! I can't run it (gives a error, sorry didn't save it) and I can't delete the file. When I right click and go to security, it says access is denied. I've been getting weird security positions on my Windows 7 install lately - could this be related?