Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 and uwp development - User-Mapped section error and CopyWin32Resources error

Continuing with some UWP development and 2 things keep happening with visual studio and I can't work out if its a VS2015 bug, the fact that I am deploying to a windows Mobile 10 device or something else.

Randomly when I try to build or deploy to my device I get either.

Could not copy "obj\ARM\Debug\MyApp.exe" to "bin\ARM\Debug\MyApp.exe". Exceeded retry count of 10. Failed.

Unable to copy file "obj\ARM\Debug\MyApp.exe" to "bin\ARM\Debug\MyApp.exe". The requested operation cannot be performed on a file with a user-mapped section open.

or I get

CopyWin32Resources failed with exit code 500

Seems to be random and I can't nail down what is causing either. Googling didn't really help. Some said Anti-virus but disabling mine did nothing. Some said it was something to do with Visual Studio Achievements Extension but I don't have it installed.

Anyone know the cause or a fix? Making development difficult when I can't deploy.

UPDATE: Ok so the first set of errors is more related to Windows 10 I think. When the error appears again I try to manually copy the file and when I do I receive similar error in explorer.

error 0x800704c8: the requested operation cannot be performed on a file with a user-mapped section open.

like image 383
Gaz83 Avatar asked Sep 26 '22 11:09

Gaz83


1 Answers

can you try those things:

  • Close all other VS windows except one.
  • Clean the project you works on.
  • Try build project. If you get same errors, close all VS windows.
  • Delete 'bin' and 'obj' folders.
  • Open VS again and try building your project.

Then try deploying your project.

like image 151
Fırat Çağlar Akbulut Avatar answered Sep 28 '22 05:09

Fırat Çağlar Akbulut