The requested operation cannot be performed on a file with a user-mapped section open

In my case it was the Explorer that was locking the DLL that was been compiled in the Debug folder… Strange, isn’t it?

I found out using a tool called Unlocker.

Had to delete with Unlocker, even when it was saying that there was no lock over the file, and I couldn’t delete the folder until I didn’t delete that single file…

After that it compiled.

EDIT:

I found out why in my case this was happening. I had the DLL opened in a text editor inside Visual Studio…

Leave a Comment

error code: 523