- Home /
Can't build webgl project at all.
Hi,
So I've just tried to build a WebGL test build and it's throwing up 2 errors. The build is still completing with a result of 'Succeeded', but I need to fix the error as it's not showing me the build at all or allowing me to use the supposedly fine build. These errors pop on ANY project, even a blank one.
Here are the errors:
Win32Exception: ApplicationName='"C:/Program Files/Unity/Hub/Editor/2019.4.17f1/Editor/Data/MonoBleedingEdge/bin/mono.exe"', CommandLine='"C:/Program Files/Unity/Hub/Editor/2019.4.17f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/SimpleWebServer.exe" "C:/Users/djsha/Desktop/GAME DEV/UNITY PROJECTS/TestProj1/TestBuild" 53965 12860 gzip', CurrentDirectory='C:/Users/djsha/Desktop/GAME DEV/UNITY PROJECTS/TestProj1/Assets/..', Native error= The system cannot find the file specified.
System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <ef151b6abb5d474cb2c1cb8906a8b5a4>:0)
System.Diagnostics.Process.Start () (at <ef151b6abb5d474cb2c1cb8906a8b5a4>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
UnityEditor.WebGL.HttpServerEditorWrapper.Create (System.String _path, System.String _wasmEncoding, System.Int32 _port) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/HttpServerEditorWrapper.cs:24)
UnityEditor.WebGL.HttpServerEditorWrapper.CreateIfNeeded (System.String path, System.String wasmEncoding, System.Int32& port) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/HttpServerEditorWrapper.cs:95)
UnityEditor.WebGL.WebGlBuildPostprocessor.LaunchPlayer (UnityEditor.Modules.BuildLaunchPlayerArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:343)
UnityEditor.PostprocessBuildPlayer.Launch (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget buildTarget, System.String path, System.String productName, UnityEditor.BuildOptions options, UnityEditor.Build.Reporting.BuildReport buildReport) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Error 2:
Win32Exception: ApplicationName='"C:/Program Files/Unity/Hub/Editor/2019.4.17f1/Editor/Data/MonoBleedingEdge/bin/mono.exe"', CommandLine='"C:/Program Files/Unity/Hub/Editor/2019.4.17f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/SimpleWebServer.exe" "C:/Users/djsha/Desktop/GAME DEV/UNITY PROJECTS/TestProj1/TestBuild" 53965 12860 gzip', CurrentDirectory='C:/Users/djsha/Desktop/GAME DEV/UNITY PROJECTS/TestProj1/Assets/..', Native error= The system cannot find the file specified.
I can see that there's clearly some sort of file missing or in the wrong place but this is a fresh install of Unity 2019.4.17f1.
Any help at all in how to move forward would be hugely helpful. Thank you in advance!
Ben.
Restart your computer. Seriously, try it.
I was seeing this The system cannot find the file specified.
before, when one of the build destination files/directories was locked by either File Explorer or some other application.
So, in the end, I just had to re-install. Clearly there was some sort of corruption or missing files in the program files. Not sure how that's happened.