- Home /
Error CS0016 in Unity?
Hi all
I just want to open a project that a mate sent me yesterday, but an Error CS0016 appears every time I open the main scene:
error CS0016: Could not write to file `Temp/Assembly-CSharp.dll', cause: Could not find file "Temp\Assembly-CSharp.dll"
I have tried to copy this file manually to the Temp folder of the project, but it is deleted when I open the project (obviously a new Temp folder is created).
I am not into assemblers, dlls...so I have no idea of why is this happening - the project can be opened from the machine where the project has been created.
Problems with compatibilities? I am using Windows 8 with Unity 4. I have used Unity 3 to see if there is some error with that, but it still does not work.
Any idea? I need to solve this issue as soon as possible, thanks.
Some more information from the Editor Log:
-----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
Compilation failed: 1 error(s), 0 warnings
-----CompilerOutput:-stderr----------
error CS0016: Could not write to file
Temp/Assembly-CSharp.dll', cause: > Could not find file > "Temp\Assembly-CSharp.dll" > > -----EndCompilerOutput--------------- > > - Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll > Internal compiler error. See the > console log for more information. > output was:error CS0016: Could not > write to file >
Temp/Assembly-CSharp.dll', cause: Could not find file "Temp\Assembly-CSharp.dll"
These are not good answers. This, CS0016 error is happening to me with the new release: 1.0f3. It never happened before. It is happening on all my programs. I think telling the antivirus programs to exclude DLL's is dangerous....Henry
I cannot even get the Standard Assets Example Project to not have the error.
Answer by dkyokusz · Feb 13, 2013 at 09:54 AM
Ok, I solved it.
Avast was not allowing to create the .dll as it thinks it is a trojan.
Good to know if anyone has the problem.
How did you fix your Avast - looks like I started to have same problem..
You can find an option to stop avast from scanning dlls somewhere in the settings menu. It is somewhere like active protection->files->advanced
Seems to have solved it for me as well. Just put the particular project I was having the problem with into the exclusions list of my antivirus and the error seems to be gone.
Your answer
![](https://koobas.hobune.stream/wayback/20220613092622im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
CS8025 Parser error 2 Answers
A node in a childnode? 1 Answer
4 errors in 1 script. Unexpected symbols and more, help please? 0 Answers
Unexpected symbol 'Flip' and 'else' 1 Answer