Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by dkyokusz · Feb 13, 2013 at 11:19 AM · c#errorassembly

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.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image dkyokusz · Feb 13, 2013 at 09:20 AM 0
Share

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"

avatar image scholarhenry · Sep 15, 2017 at 01:43 PM 0
Share

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

avatar image scholarhenry scholarhenry · Sep 15, 2017 at 01:45 PM 0
Share

I cannot even get the Standard Assets Example Project to not have the error.

avatar image scholarhenry · Sep 17, 2017 at 09:43 PM 0
Share

Did not work for me...Wish it would have.

1 Reply

· Add your reply
  • Sort: 
avatar image
6
Best Answer

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.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image unigeek · Jan 10, 2015 at 09:10 AM 0
Share

How did you fix your Avast - looks like I started to have same problem..

avatar image Suguma unigeek · Oct 29, 2015 at 04:47 PM 0
Share

You can find an option to stop avast from scanning dlls somewhere in the settings menu. It is somewhere like active protection->files->advanced

avatar image biggsthecat · Nov 13, 2016 at 11:42 AM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Error Building Player: 'aapt.exe' Win32Exception 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges