- Home /
Error when creating scripts & installation problems
I get the following error message as soon as I create a new script:
Win32Exception: ApplicationName='C:\Program Files\Unity\Editor\Data\Tools\RoslynScripts\unity_csc.bat', CommandLine='/noconfig @Temp/UnityTempFile-8d9c55fba22a3064283cb535b5dbd608', CurrentDirectory='', Native error= The system cannot find the file specified.
System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at :0) > System.Diagnostics.Process.Start () > (at > :0) > (wrapper remoting-invoke-with-check) > System.Diagnostics.Process.Start() > UnityEditor.Utils.Program.Start > (System.EventHandler exitCallback) (at > C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:44) > UnityEditor.Utils.Program.Start () (at > C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:28) > UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.StartCompilerImpl > (System.Collections.Generic.List`1[T] > arguments, System.String argsPrefix) > (at > C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MicrosoftCSharpCompiler.cs:106) > UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.StartCompiler > () (at > C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MicrosoftCSharpCompiler.cs:141) > UnityEditor.Scripting.Compilers.ScriptCompilerBase.BeginCompiling > () (at > C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:51) > UnityEditor.Scripting.ScriptCompilation.CompilationTask.QueuePendingAssemblies > () (at > C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/CompilationTask.cs:286) > UnityEditor.Scripting.ScriptCompilation.CompilationTask.Poll > () (at > C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/CompilationTask.cs:186) > UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScriptAssemblies > (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly[] > scriptAssemblies, > UnityEditor.Scripting.ScriptCompilation.ScriptAssemblySettings > scriptAssemblySettings, System.String > tempBuildDirectory, > UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions > options, > UnityEditor.Scripting.ScriptCompilation.CompilationTaskOptions > compilationTaskOptions, > UnityEditor.Scripting.ScriptCompilation.EditorCompilation+CompileScriptAssembliesOptions > compileScriptAssembliesOptions) (at > C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:1467) > UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScripts > (UnityEditor.Scripting.ScriptCompilation.ScriptAssemblySettings > scriptAssemblySettings, System.String > tempBuildDirectory, > UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions > options, > UnityEditor.Scripting.ScriptCompilation.EditorBuildRules+TargetAssembly[]& > notCompiledTargetAssemblies, > System.String[]& notCompiledScripts) > (at > C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:1370) > UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScripts > (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions > options, UnityEditor.BuildTargetGroup > platformGroup, UnityEditor.BuildTarget > platform) (at > C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:1263) > UnityEditor.Scripting.ScriptCompilation.EditorCompilation.TickCompilationPipeline > (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions > options, UnityEditor.BuildTargetGroup > platformGroup, UnityEditor.BuildTarget > platform) (at > C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:1699) > UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface+c_AnonStorey5.<>m_0 > () (at > C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:371) > UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface.EmitExceptionAsError[T] > (System.Func`1[TResult] func, T > returnValue) (at > C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:97) > UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, > BuildTargetGroup, BuildTarget)
I also had trouble downloading Unity via the Hub. I had to use the manual downloader from the archive. I then pointed towards the Editor's location from within the Hub and it allowed me to create a Project. I tried uninstalling & deleting everything, registry cleanup, Windows updates, driver updates. Can someone point me in the right direction?
Your answer
Follow this Question
Related Questions
Can't add script to anything error 1 Answer
Help with script 1 Answer
raycast error 1 Answer
ArgumentException: JSON ArgumentException: JSON must represent an object type. 0 Answers
How do I access scripts 2 Answers