WebGL build exception
My project worked fine and could build in PC but when I switched to WebGL I couldn't build it anymore. I tried running Unity as an administator and rebooting but nothing seems to work. Here are the exceptions:
EXCEPTION 1:
Failed running C:\Program Files\Unity\Hub\Editor\2020.1.4f1\Editor\Data\Tools/InternalCallRegistrationWriter/InternalCallRegistrationWriter.exe -output="C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\UnityICallRegistration.cpp" -summary="C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\ICallSummary.txt" -assembly="C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.AIModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.AndroidJNIModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.AnimationModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.AssetBundleModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.AudioModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.CoreModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.DirectorModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.GridModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.IMGUIModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.InputLegacyModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.InputModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.ParticleSystemModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.Physics2DModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.PhysicsModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.SharedInternalsModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.SpriteShapeModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.SubsystemsModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.TerrainModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.TextCoreModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.TextRenderingModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.TilemapModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.UIElementsNativeModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.UIModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.UnityAnalyticsModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.UnityWebRequestModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.VFXModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.VideoModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.VRModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.XRModule.dll;C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\tempStrip\UnityEngine.dll"
stdout: stderr:
Excepci�n no controlada: System.UnauthorizedAccessException: Acceso denegado a la ruta de acceso 'C:\Users\Usuario\Desktop\Grelo\Temp\StagingArea\Data\Managed\ICallSummary.txt'. en System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) en 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) en System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) en System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) en System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) en System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) en Unity.InternalCallRegistrationWriter.Runner.DefaultRunner.Run(InternalCallOptions options) en Unity.InternalCallRegistrationWriter.Runner.DefaultRunner.ParseOptionsAndRun(String[] args) en Unity.InternalCallRegistrationWriter.Program.Main(String[] args)
UnityEngine.Debug:LogError(Object) UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) UnityEditorInternal.Runner:RunManagedProgram(String, String) UnityEditorInternal.AssemblyStripper:GenerateInternalCallSummaryFile(String, String, String) UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(UnityLinkerRunInformation) UnityEditorInternal.AssemblyStripper:StripAssemblies(String, BaseUnityLinkerPlatformProvider, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel) UnityEditorInternal.IL2CPPBuilder:Run() UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
EXCEPTION 2:
Exception: C:\Program Files\Unity\Hub\Editor\2020.1.4f1\Editor\Data\Tools/InternalCallRegistrationWriter/InternalCallRegistrationWriter.exe did not run properly! UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at :0) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at :0) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args) (at :0) UnityEditorInternal.AssemblyStripper.GenerateInternalCallSummaryFile (System.String icallSummaryPath, System.String managedAssemblyFolderPath, System.String strippedDLLPath) (at :0) UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at :0) UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at :0) UnityEditorInternal.IL2CPPBuilder.Run () (at :0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at :0) UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:373) UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:911) UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :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 :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Does anyone know what is happening?