Assembly-CSharp.dll error

Hey Unity community,

Since yesterday I’ve been getting the following error when editing a C# script (in monodevelop) and saving it. The error comes up when trying to play.

Script compilation error: Couldn’t replace Library/ScriptAssemblies/Assembly-CSharp.dll

I’ve restarted Unity, my laptop and I’ve even uninstalled and reinstalled Unity…
I’m using version 4.5.2f1 and was editing a basic GUI script, nothing too weird. Other programmers looked at it and couldn’t help me. Any idea how to fix this?

Thanks in advance,
Crixu

Does that file exist on disk? Can you delete it? Do you have some Anti-Virus software that’s taken a dislike to that file?

Thank you, deleting it worked!
Now I can go back to work, thank you sir!

I get the same problem.

Is panda anrtivirus known to cause any errors?

I’ve had this issue for days and deleting Assembly-CSharp.dll, Assembly-CSharp-firstpass.dll, and Assembly-UnityScript.dll in my C:.…\ProjectName\Library\ScriptAssemblies folder seems to have fixed it!

@Faestus - This error kept popping up for me around the time I installed Panda Antivirus, so it may very well be the culprit if other panda users are seeing this as well.

Thanks for the tip Graham!

1 Like

Este error me Apareció al actualizar la versión de la unidad 5.5.1f1:

mover temp / montaje csharo-firstpass.dll a la biblioteca / scriptassemblies / montaje-csharp-firstpass.dll: El Proceso de No Tiene Acceso al archivo Porque this Siendo utilizado por Otro Proceso

soy principiante en unity así que no tengo idea de que significa o como solucionarlo. Les agradecería la ayuda

This error appeared when I updated the version of the 5.5.1f1 drive:

Mov temp / mount csharo-firstpass.dll to library / scriptassemblies / mount-csharp-firstpass.dll: The process of not having access to the file because this being used by another process

Beginner soy in unit so I have no idea what it means to fix it. Thanks to the help