- Home /
WebGL compiler errors
Hello, after upgrading unity and projects from 5.5.2f1 to 5.6.5f1, I can not build a WebGL.
html parseerror: 5:72 Encoding mismatch between StreamEncoding: windows-1251 and DeclaredEncoding: utf-8 UnityEngine.Debug:Log(Object) WebglAdsNamespace.WebGLBuild:OnPostprocessWebglAdsBuild(BuildTarget, String) (at Assets/webgl_tools/Editor/WebGLBuild.cs:64) UnityEditor.Build.BuildPipelineInterfaces:OnBuildPostProcess(BuildTarget, String, Boolean)
=========================
InvalidOperationException: Operation is not valid due to the current state of the object System.Linq.Enumerable.First[String] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) System.Linq.Enumerable.First[String] (IEnumerable`1 source, System.Func`2 predicate) WebglAdsNamespace.WebGLBuild.OnPostprocessWebglAdsBuild (BuildTarget target, System.String pathToBuiltProject) (at Assets/webgl_tools/Editor/WebGLBuild.cs:75) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115) UnityEditor.Build.BuildPipelineInterfaces+AttributeCallbackWrapper.OnPostprocessBuild (BuildTarget target, System.String path) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:65) UnityEditor.Build.BuildPipelineInterfaces.OnBuildPostProcess (BuildTarget platform, System.String path, Boolean strict) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:274) UnityEditor.Build.BuildPipelineInterfaces:OnBuildPostProcess(BuildTarget, String, Boolean)
=========================
Error building Player: InvalidOperationException: Operation is not valid due to the current state of the object
Your answer
![](https://koobas.hobune.stream/wayback/20220612151618im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity Deleted My Game 1 Answer
Unable to connect profiler to WebGL 2 Answers
Unity3d android apk file becomes huge without any scene 0 Answers
How to upload WebGL games on reputed websites? 1 Answer
**C#: I can't solve this problem! please help!**,**C#: How it must work?(it isn't working)** 0 Answers