I keep getting the same 2 build errors

Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.2.2f1\Editor\Data\Tools/InternalCallRegistrationWriter/InternalCallRegistrationWriter.exe -output=“C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\UnityICallRegistration.cpp” -summary=“C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\ICallSummary.txt” -assembly=“C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.AnimationModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.AudioModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.CoreModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.GridModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.IMGUIModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.InputLegacyModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.Physics2DModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.PhysicsModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.SharedInternalsModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.SpriteShapeModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.TextCoreModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.TextRenderingModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.TilemapModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.UIModule.dll;C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.dll”

stdout:
stderr:

Unhandled Exception: System.UnauthorizedAccessException: Access to the path ‘C:\Users\raska\Desktop\Video Games\NewUnityProject(2)\Temp\StagingArea\Data\Managed\ICallSummary.txt’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter…ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at Unity.InternalCallRegistrationWriter.Runner.DefaultRunner.Run(InternalCallOptions options)
at Unity.InternalCallRegistrationWriter.Runner.DefaultRunner.ParseOptionsAndRun(String args)
at Unity.InternalCallRegistrationWriter.Program.Main(String args)

UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1[T] setupStartInfo) (at <433cbae83977409887e43d50043210d2>:0) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args) (at <433cbae83977409887e43d50043210d2>:0) UnityEditorInternal.AssemblyStripper.GenerateInternalCallSummaryFile (System.String icallSummaryPath, System.String managedAssemblyFolderPath, System.String strippedDLLPath) (at <433cbae83977409887e43d50043210d2>:0) UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <433cbae83977409887e43d50043210d2>:0) UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <433cbae83977409887e43d50043210d2>:0) UnityEditorInternal.IL2CPPBuilder.Run () (at <433cbae83977409887e43d50043210d2>:0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:365)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:910)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <433cbae83977409887e43d50043210d2>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

AND

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <433cbae83977409887e43d50043210d2>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <433cbae83977409887e43d50043210d2>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Turns out it was the file location, and my antivirus was stopping a file from being rewritten.

Hi,

Welcome to our community! :slight_smile:

Have you already tried to restart Unity?

Also, do NOT save your project in the Desktop folder and do not install anything inside the Desktop folder. It’s a special folder managed by Windows. It might be that there are restrictions. Use a “normal” folder on your harddrive.


See also:

1 Like

Turns out it was the file location, and my antivirus :sweat_smile: thank you very much!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms