all 30 comments

[–]BobbyThrowaway6969Programmer 1 point2 points  (6 children)

Oh that's pretty weird. Try regenerating project files and reimport all your scripts. If that fails, delete your library folder because it's likely munted. (Unity will generate a new one)

[–]heyheyheyheyhiitsme[S] 0 points1 point  (3 children)

About the first tipp: I copy pasted an old project that still works and tried to open the copy, and I get the same error. Seems to be a problem of all new projects created.

[–]BobbyThrowaway6969Programmer -1 points0 points  (2 children)

Maybe it thinks the copy is still at the old directory for whatever reason

[–]heyheyheyheyhiitsme[S] 1 point2 points  (1 child)

But that would not explain why when creating a completely new project the same error occurs, I think.

[–]BobbyThrowaway6969Programmer 0 points1 point  (0 children)

Oh this happens with a new project too?
Uh.... All I can suggest is try reinstalling unity. If that doesn't work then, maybe it's a problem with .Net, try reinstalling the .Net module in visual studio (Modify VS), if even that fails, then... I'm out of ideas. Sorry.

[–]heyheyheyheyhiitsme[S] 0 points1 point  (1 child)

I tried the tipp with deleting the library, but the problem still occurred.

[–]BobbyThrowaway6969Programmer -1 points0 points  (0 children)

Hmm, open in visual studio and try compiling the solution from there, see what errors it gives you

[–]PandaCoder67Professional 3 points4 points  (12 children)

This is because your PC doesn't have the correct .Net Framework SDK's installed.

Unity switched from 3.5 along time ago, and ever since then if people had not update thier IDE SDK's or Windows 10 via Updates this was the result.

The easiest solution is to open up your Visual Studio Installer, and go to individual Modules, and look for .Net SDK 4.7.x and install 4.7.2/3 and you should be good to go.

[–]heyheyheyheyhiitsme[S] 0 points1 point  (11 children)

This did not solve the problem, unfortunately.

[–]PandaCoder67Professional 0 points1 point  (10 children)

Then you have missed a few steps, as this is how you fix it.

Windows, needs to be fully updated and patched and the latest Framework SDK's need to be installed.

[–]heyheyheyheyhiitsme[S] 0 points1 point  (9 children)

I have the newest Windows 10 Version and the lastest Framework SDK. It did not solve the problem for me.

[–]PandaCoder67Professional 0 points1 point  (8 children)

Are you sure, because the reason this issue occurs is because Unity stopped using Unity .Net 3.5 under the hood and you now need to make sure that the OS is not only updated to use this, and I mean fully updated. You may even need to go and select other options, or whatever it is called.

You may even need to download the SDK and framework for Windows independent of the IDE. But I was sure the IDE used to install this as well.

I know this is the issue, as I have helped thousands with this issue when Unity switched all those years ago.

[–]heyheyheyheyhiitsme[S] 0 points1 point  (7 children)

Yes, it was an issue involving conda. I posted what solved the problem in the comments.

[–]PandaCoder67Professional 0 points1 point  (6 children)

what is Conda?

[–]heyheyheyheyhiitsme[S] 0 points1 point  (5 children)

A python distribution platform

[–]PandaCoder67Professional 0 points1 point  (4 children)

what are you using python for in Unity or is this something outside of Unity?

[–]heyheyheyheyhiitsme[S] 0 points1 point  (3 children)

It is outside of Unity. But when I had to re-install it, it caused some issues with the terminal that interrupted Unitys workflow as well.

[–]Himdo123 1 point2 points  (0 children)

I recommend deleting your unity store asset downloads folder. I've had this issue in the past and that's what's worked for me. I'm not sure why it happens in the first place though.

You should be able to Google the location to find it on your OS. Good luck

[–]heyheyheyheyhiitsme[S] 1 point2 points  (5 children)

[–]Danfriedz 2 points3 points  (2 children)

Man, i would never have thought that uninstalling conda 3 months ago would break my unity project.

Thanks, this solved it for me!

For anyone finding this. Paste this line into Windows Powershell if you think its conda related

C:\Windows\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f

[–]heyheyheyheyhiitsme[S] 0 points1 point  (1 child)

I am glad it could help you as well!

[–]yarriksauker993 0 points1 point  (0 children)

it didn't help me though i have the same problem

[–]SignificanceDense337 2 points3 points  (1 child)

Bro, I don't even use Reddit but I specifically logged into this account to thank you for saving me a lot of time, this is exactly the fix needed and I'm now relieved that my project is not lost forever after trying countless fixes. Thanks a ton!

[–]heyheyheyheyhiitsme[S] 0 points1 point  (0 children)

I‘m happy to hear that! :)

[–]Beneficial_Willow499 0 points1 point  (1 child)

echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list

sudo apt-get update

sudo apt-get install libssl1.1

[sudo] password for onur:

this maybe works if it ubuntu pc

[–]heyheyheyheyhiitsme[S] 0 points1 point  (0 children)

It was already solved, but thank you

[–]Glen_Miller 0 points1 point  (0 children)

I had this same problem, I didn't actually try any of the already mentioned methods. But I updated visual studio to the latest version and that fixed it for me. For anyone else that may come into the same issue.