• 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 /
  • Help Room /
avatar image
0
Question by chrisflock91 · Jun 06, 2019 at 09:21 AM · installationcompilercompiler error

error CS2011: Error opening response file (incorrect temp folder)

Hello community,

I need your help. I have just installed Unity on a second computer in "C:\Program Files\Unity\Hub\Editor\2019.1.5f1\" and get 5 errors directly after each fresh startup and can't neither compile anything nor enter Unity play mode. On my first computer these errors do not exist. It does not matter if it is a blank project or one with lots of assets. Both computers run on Windows 10 64-bit with Visual Studio Professional 2017. Re-installations of Unity and VS2017 did not help.


alt text


I already read many other posts about similar issues related to "error opening response file", but they mostly referred to symlinks or paths with write protection. My issue seems different, with the editor just at "C:\Program Files\Unity\Hub\Editor\2019.1.5f1\" and the project at "C:\Projekte\New Unity Project\". Changing the project path does not matter. I already tried 3 different drives and locations.


Searching through the Editor.log file for details, I can see the 5 temp files produce this kind of error:

 -----Compiler Commandline Arguments:
 Filename: C:\Program Files\Unity\Hub\Editor\2019.1.5f1\Editor\Data\Tools\RoslynScripts\unity_csc.bat
 Arguments: /noconfig @Temp/UnityTempFile-e08d5c71413756945837148f68a69ad6
 Responsefile: Temp/UnityTempFile-e08d5c71413756945837148f68a69ad6 Contents: 
 /target:library
 /nowarn:0169
 /out:Temp/Unity.TextMeshPro.dll

[Followed by about 300 lines of settings, /reference's, /define's and paths - followed by...]

 -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Unity.TextMeshPro.dll
 Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
 Copyright (C) Microsoft Corporation. All rights reserved.
 
 error CS2011: Error opening response file 'C:\Windows\System32\Temp/UnityTempFile-6d2a68ef4f8feff48b081cfff22fd108'
 warning CS2008: No source files specified.
 error CS1562: Outputs without source must have the /out option specified
 -----CompilerOutput:-stderr----------
 -----EndCompilerOutput---------------
 - Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.dll

What they differ from each other are these lines:

Error 1:

 -----CompilerOutput: [...] True--outfile: Temp/Unity.TextMeshPro.dll
 error CS2011: Error opening response file 'C:\Windows\System32\Temp/UnityTempFile-6d2a68ef4f8feff48b081cfff22fd108'
 - Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.dll

Error 2:

 -----CompilerOutput: [...] True--outfile: Temp/Unity.Timeline.dll
 error CS2011: Error opening response file 'C:\Windows\System32\Temp/UnityTempFile-e08d5c71413756945837148f68a69ad6'
 - Finished compile Library/ScriptAssemblies/Unity.Timeline.dll

Error 3:

 -----CompilerOutput: [...] True--outfile: Temp/Unity.PackageManagerUI.Editor.dll
 error CS2011: Error opening response file 'C:\Windows\System32\Temp/UnityTempFile-f2661e8f7fbea0e48843d231bc5bf5d2'
 - Finished compile Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll

Error 4:

 -----CompilerOutput: [...] True--outfile: Temp/Unity.CollabProxy.Editor.dll
 error CS2011: Error opening response file 'C:\Windows\System32\Temp/UnityTempFile-6b0dbb9b1dfd0a24f95ef817f65e991f'
 - Finished compile Library/ScriptAssemblies/Unity.CollabProxy.Editor.dll

Error 5:

 -----CompilerOutput: [...] True--outfile: Temp/Unity.Analytics.DataPrivacy.dll
 error CS2011: Error opening response file 'C:\Windows\System32\Temp/UnityTempFile-6b3cf37143da036458b1886861b10eb3'
 - Finished compile Library/ScriptAssemblies/Unity.Analytics.DataPrivacy.dll

But what they all have in common is that they are missing the response file in "C:\Windows\System32\Temp\". I don't know why they are looking in this folder, since all these 5 temp files are existing, but in the Unity project folder, where I would expect them. Unity just does not look in this folder.

alt text

What can this be and how you would fix it?

Sincerely, Christian

71cefd9c-1d5d-4a51-b1a6-471625c9d1b6.jpg (77.4 kB)
90b62144-6631-451c-80e8-b35f2cd48b32.jpg (49.4 kB)
Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by hamokshaelzaki · Aug 08, 2019 at 03:58 PM

I deleted the .vs folder and generated solution file, let unity regenerate them. booom, problem solved.

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 madhavofficial · Jun 01, 2020 at 03:56 AM 0
Share

Can you please elaborate, I am new to unity

avatar image hamokshaelzaki · Jun 01, 2020 at 10:56 AM 0
Share
  1. Show hidden folders in windows

  2. In the root folder of the project (where Assets folder is)

  3. delete all *.sln files and ".vs" folder

avatar image
0

Answer by chrisflock91 · Jun 12, 2019 at 06:34 AM

Somebody?

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

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

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

Related Questions

Is it possible to get Unity to compile specific scripts even if it can't compile the entire project because of errors. 1 Answer

NULL REFERENCE DRVING ME INSANE!!! HELP!!!! 1 Answer

Double clicking console error does nothing 1 Answer

Compiler won't execute after upgrading from 5.5 to the 5.6 beta 0 Answers

Unity 5 checking if player isGrounded 1 Answer


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