Moving file failed

Hello,

Recently when I have opened my unity project, I have been getting a very strange error upon compiling any of my scripts:

74540-error.png

“Moving Temp/Assembly-CSharp.dll to Library/ScriptAssemblies/Assembly-CSharp.dll: The system cannot find the file specified.”

Since getting this error, all of my scripts have not been working, essentially halting the progress on my game for the last couple weeks. When I checked the ScriptAssemblies folder, there was no file there.

Things I have tried so far:

  • Restarting Unity
  • Restarting Windows
  • Uninstalling and reinstalling Unity
  • Manually creating a blank Assembly-CSharp.dll file in ScriptAssemblies
  • Creating a new project and importing my assets over

Unfortunately none of these attempts worked, implying the problem stems from something much larger than Unity or my project themselves. I would really love and appreciate any advice on the matter.

Thank you!!! :slight_smile:

Try to run Unity as administrator.

Also, see this thread which seems to be the same problem than yours and it suggests some fixes:

In case anyone else comes across this… I get issues similar to this one when my hard drive is running low on space.