Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question Win32Exception: The system cannot find the file specified

Discussion in 'Scripting' started by ArtIsEverything, Jan 15, 2021.

  1. ArtIsEverything

    ArtIsEverything

    Joined:
    Jan 13, 2021
    Posts:
    4
    Hi everyone,

    I'm just starting to get into Unity, but I keep running into a problem every time I try to write a script. This happens when I create any script file in any project, old or new. It happens as soon as I create the file, and have not written a line of code within it yet. And before people say it, yes the class name and the file name match and this still occurs. I have not been able to get a single original script applied to an object because of this, though the basic ones like rigidbody do work when applied to an object.

    I'm using Unity 2020.2.1f1

    My research online has found that maybe this is because there is an apostrophe in the directory somewhere, but I have no idea where that might be or what people are talking about when they mention this.

    So, the error I get is as follows
    Win32Exception: ApplicationName='C:\Program Files\Unity\Editor\Data\Tools\RoslynScripts\unity_csc.bat', CommandLine='/noconfig @temp/UnityTempFile-af84a900788613a409d2877307319c2b', CurrentDirectory='', Native error= The system cannot find the file specified.

    The rest of the error message can be found here, since I don't want to clog up the post with it https://pastebin.com/nxg40EH7

    I'm happy to provide any other information you want, just let me know!
    Thanks!
     
  2. ArtIsEverything

    ArtIsEverything

    Joined:
    Jan 13, 2021
    Posts:
    4