Search code examples
c#asp.netdllbin

error in bin folder related to DLL conected with obj folder in asp.net


when am running my project 2 errors are coming first one is

"Error 20 Could not copy "obj\Debug\graceCommunityCare-Nov2015.dll" to "bin\graceCommunityCare-Nov2015.dll". Exceeded retry count of 10. Failed".

and the second one is

"Error 21 Unable to copy file "obj\Debug\graceCommunityCare-Nov2015.dll" to "bin\graceCommunityCare-Nov2015.dll". The requested operation cannot be performed on a file with a user-mapped section open".

i have a bin folder with gracecommunity DLL and obj folder is comes automatic it is not included now .obj folder contain debug folder. In that folder there are dll and some other file so please help me to solve this problem.

2 images are attached please check u can understand easily...

error screenshot

error folder directory


Solution

  • Restart your Visual Studio. Delete the obj and bin folders(If still you are not able to delete the bin and obj folders, restart your computer). Clean and re-compile the solution.