Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

When ever i build the project always i am getting the below error:
Error 1 Could not write to output file 'd:\FOODCOURT PROJECT\FoodCourt2\FoodCourt\obj\Debug\FoodCourt.exe' -- 'Access is denied. ' D:\FOODCOURT PROJECT\FoodCourt2\FoodCourt\CSC FoodCourt.

Here i am using Vs2012 and project type is Windows application.
If i restart the system that error removing and after some time again it's coming.
How to Remove that error and Why it is coming?

Plz help me.
Thanking you.
Posted
Comments
dan!sh 11-Jan-16 22:16pm    
As it says, you do not have access to that location. I guess you should check with your administrator.
Member 11570261 11-Jan-16 22:46pm    
I am running VS as a Adminstrator.There is no problem with permissions.If i open any windows application that above error comming.
BulletVictim 12-Jan-16 0:42am    
Set the file access on your folder to have you access everything.
If you have run the exe from the debug folder outside of visual studio this error would occur. check the task manager for your exe. Perhaps it does not end correctly.
Member 11570261 12-Jan-16 1:30am    
Yes In my task manager also i am unable to end task.what i have do now?
Where i have change to properly?

1 solution

The only possibilities:

1) You don't have permissions to write to the file or folder location.

2) The code is running and any running code locks the file it came from. It could be running separate from Visual Studio launching it under the debugger!

3) The file is opened and locked in some other editor, compiler, or other application.
 
Share this answer
 
Comments
Member 11570261 12-Jan-16 1:31am    
How to Unlock it?
Dave Kreskowiak 12-Jan-16 9:55am    
You can't unlock it until you figure out what's is locking it. I gave you the possibilities. It's now up to you to do the work of finding out what's causing it. Only then can you solve the problem.
George Swan 13-Jan-16 2:27am    
Write permissions can cascade down to subdirectories from the parent directory. Try moving your project to a subdirectory of your documents folder.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900