How to overcome a Error in WebGL building?

Salut, amis!
When I run a building to WebGL my test project, I always get the 3 error:
How can I overcome her?

FileNotFoundException: D:\Cloud-Google\LeoUnity\UnityTest4\Temp\StagingArea\Data\linkresult_wasm\build.wasm does not exist

System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) (at <599589bf4ce248909b8a14cbe4a2034e>:0)

System.IO.File.Copy (System.String sourceFileName, System.String destFileName) (at <599589bf4ce248909b8a14cbe4a2034e>:0)

UnityEditor.WebGL.WebGlBuildPostprocessor.AssembleOutput (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:644)

UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:934)

UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)

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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Build completed with a result of ā€˜Failed’

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors

at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190

at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

And here’s another thing: Every time, before building, I create a target directory and point it on ā€œbuild and runā€. And every time after a error building, Unity removes it !!!

D:\Cloud_Google? Does it work when building a new/empty WebGL project, all local?

1 Like

On second PC it work ok in D:\Cloud-Google. But I have repeatedly tried to build WebGL from the root of the C: drive. The error is the same: FileNotFoundException. Only file names are different
What experiment should I do, to find the cause of the error?

So it works as expected on a second machine when building WebGL? What is different between the systems? Have you tried running Unity as Administrator?

Successfully! Simply, reinstalled Windows. The same version (Win 10 pro). Errors have disappeared. Maybe some programs created an environment variable in the registry.