Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
2
Question by ciaratamay · Nov 01, 2019 at 06:42 PM · editorprojectassemblyinstallassemblies

Copying assembly from 'Temp/UnityEngine.TestRunner.dll' to 'Library/ScriptAssemblies/UnityEngine.TestRunner.dll' failed - corrupting all my projects, tried all other q answers

A few days ago I switched from editing a script in Visual Studio back to Unity (2019.2.10), using HDRP which crashed Unity - when I opened the project again, only a few items in my scene were visible at all, with pink error materials, most items were not visible in the scene and all references to any scripts showed missing script / not monobehaviour.

In the console, I have these two errors:

Copying assembly from 'Temp/UnityEngine.UI.dll' to 'Library/ScriptAssemblies/UnityEngine.UI.dll' failed

Copying assembly from 'Temp/UnityEngine.TestRunner.dll' to 'Library/ScriptAssemblies/UnityEngine.TestRunner.dll' failed



I tried reinstalling unity, installing a newer version (unity 2019.2.10 to 2019.2.11, also tried with latest Beta) and have same issue and errors with the project folder. I have a backup folder from a week ago, which when I open it on the same PC results in the same error - I also see that the \Library\ScriptAssemblies folder becomes empty after being opened in unity on this PC. I've tried copy pasting everything from that folder back in after opening, no change.



I opened the backup folder on a different PC with 2019.2.11 and was able to open it as normal - however the folder that appears to have been corrupted on the other PC results in the same issue on either PC.

It appears that opening any of my projects (pre-crash and post-crash) results in them being irretrievably corrupted on my main desktop - my other laptop can run a pre-crash project no problem, but that laptop is not good enough to run VR, so I can't use it for developing this project.

I've tried all of the fixes provided by other users here: Nothing works at all:

  • I have already uninstalled and deleted both versions of Unity, deleted everything unity or unity technlogies in my AppData folder, also deleted a ton of keys under unity or unity technlogies in registry.

  • tried reimporting all assets, resetting packages to default

  • I have also tried disabling antivirus, scanning for viruses, (found a bit miner but still having same problem)

  • ensuring I have full admin control of the folders in my project

  • deleting temp folders

  • starting a new project and importing a custom package that I exported which included most of the assets in my project, (scripts, scene, models, prefabs)- importing the asset package causes the same issue (on my desktop, not on my laptop.)

  • opening visual studio and editing a script then going back to unity, no change.

  • I'm not using collaborate or multiplayer package.

  • The problem never goes away by restarting unity

  • List item



My next option is to reinstall windows, but as I seem to have removed unity fully already I don't know will this definitely fix things - if anyone has any other solutions please help! I have filed a bug report also.

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 Propagant · Mar 28, 2020 at 03:20 PM 0
Share

Still no solution? Same issue Unity 2019.2.4f1...

avatar image ciaratamay Propagant · Mar 28, 2020 at 03:32 PM 1
Share

Unfortunately never got a solution. I reinstalled windows and then returned to work on my older version of the project, never had the same problem since and just made sure to always have separate backups. Received a response from unity weeks later looking for more information but I had to submit my master's project and had no more time to wait or investigate.

avatar image Propagant ciaratamay · Mar 28, 2020 at 04:21 PM 0
Share

Hey thanks for respond. The problem occurs when I try to import any external asset from assets store. That's really strange. Also I found some $$anonymous$$ers but the problem remains... Really annoying. Will post you a solution here if I got some

avatar image udaypeddinti · Jul 27, 2021 at 01:29 PM 0
Share

After importing assets ,save the file and close unity editor ,then delete the library folder of your project ,now open the project ,you will not find the error

thank you

6 Replies

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

Answer by almogo0o · Mar 29, 2020 at 04:10 PM

I had the same problem and found in regedit.exe that some malware wrote a script in to a key called "auto run" in HKEY_current_user/software/microsoft/command processor. by clearing the key's data it fixed it for me. Hope this helps :),I had the same problem and found that some malware wrote in to a registry key called auto run in HKEY_current_user/software/microsoft/command processor, which needs to be empty for the most users. Clearing that up helped me. Hope this helped :)

Comment
Add comment · Show 7 · 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 Propagant · Mar 29, 2020 at 06:52 PM 0
Share

lol THANK YOU! Fixed the problem:) Rewarded by points! Unity should post something about this issue and your option should be one of the solutions. God bless:)

avatar image almogo0o Propagant · Mar 30, 2020 at 11:12 AM 1
Share

Happy to help :)

avatar image ciaratamay · Mar 29, 2020 at 09:45 PM 1
Share

Ahh! I wish I had found this when I was in the middle of this problem. Thanks for sharing and I'm glad there's a solution if it happens again.

avatar image nostramus_avitae · Apr 16, 2020 at 11:55 AM 0
Share

i can't see anything like that on regedit.exe.

avatar image almogo0o nostramus_avitae · Apr 16, 2020 at 12:40 PM 0
Share

From what i noticed this key isnt there in some windows 10 versions for some reasons

avatar image GAzirovany_borsh · May 26, 2020 at 04:18 PM 0
Share

Don't do it!!! Your computer won't start normal after this. If you delete this registry key, you will end up with black screen and cmd.exe Please do not follow this horrible advise! If you ever change something in registry, you should rename it rather than deleting entry

avatar image TigerF · Jan 04, 2021 at 02:00 PM 0
Share

Thanks, this worked for me but also need to delete %comspec% as you advised in your comment below otherwise PC was booting cmd up instead of explorer indeed

avatar image
3

Answer by zeeseb711 · Jul 31, 2020 at 09:27 PM

I had this same problem yesterday and happily fixed it after copying the Temp/UnityEngine.TestRunner.dll file manually to the folder Library/ScriptAssemblies, which did not have the dll in there for some reason. After that all the errors went away for me. Hopefully this helps anyone out there. Good luck.

Comment
Add comment · 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
1

Answer by alenetashjian · May 11, 2020 at 08:17 AM

I tried this & when I shut my computer off & back on, it won’t start up. Any clues on how to fix this??,I tried this & restarting my computer but now it won’t start back up. Any clues on what I can do to fix this??

Comment
Add comment · Show 2 · 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 almogo0o · May 11, 2020 at 01:56 PM 0
Share

I'm guessing when windows starts up you get your mouse cursor floating in a black background. If its so then try pressing ctrl+shift+esc to bring task manager up, press file -> new task(run...) and in the run write "explorer.exe" without the quotations, this will bring your desktop back for that instance but you will have to do these steps again every time your pc shuts down. I wish I could help more but I have the same problem and have yet to find a solution for it.

avatar image almogo0o · May 14, 2020 at 12:22 PM 0
Share

Found a solution for it that worked for me: https://www.tenforums.com/general-support/94378-boot-problems-black-screen-cmd-no-explorer-exe.html basicly donwload autoruns from the microsoft website (it's a wininternals app which allows you to view the registry in a more human friendly form) run it and filter by cmd if you find a %comspec% delete it since its the key that causing windows to boot cmd up ins$$anonymous$$d of explorer.exe hope this helps

avatar image
1

Answer by YasinJavaid_ · Jan 11, 2021 at 11:18 AM

@johnG0709er your solutions works for me. i had problem in all unity versions in my system. i install malware bytes and use trail version. scan then delete issues. final step restart. everything works. Thanks Man you saved my day for reinstalling windows.

Comment
Add comment · 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
0

Answer by gabearts · Nov 18, 2020 at 11:07 AM

Updating preview packages for Screen Capture fixed this for me.

Comment
Add comment · Show 1 · 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 johnG0709er · Nov 18, 2020 at 11:16 AM 0
Share

Download a program called malwarebytes, run it it gives u a 30 day trial, you should have two trojans on your pc that will remove them then go back into unity after a restart and the problem will no longer be there, I had this for ages I had it in a blank project of unity with no code or items and it will still give me that error, I tried dling all old programs and re-installing loads of stuff the malware bytes is the only thing that worked.

  • 1
  • 2
  • ›

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

168 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 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 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 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 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 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 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 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 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 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 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 avatar image avatar image avatar image

Related Questions

How to increase the size of my sprites in the Editor > Project previsualization? 0 Answers

Projector working in Editor, but disappearing after Build & Run 0 Answers

Different lighting in projects 1 Answer

How do you get child assets in the Project hierarchy in an EditorWindow? 0 Answers

References and Namespaces 0 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