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

后端 未结 28 1579
深忆病人
深忆病人 2020-12-07 16:03

Whenever I tried to copy 4 files into my bin folder, after stopping the main service, I am getting an error with one file (TexteDll). The error is:

Cannot co         


        
28条回答
  •  离开以前
    2020-12-07 16:54

    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...

提交回复
热议问题