Error Building Web Player

I get these two errors every time I attempt to build a web player of my unity project. It builds just fine when I do a standalone.

“Error building Player: IOException: Win32 IO returned 1224. Path: C:\Users\aernst\Documents\Dead Ringer\Temp\BuildingWebplayerTemplate\WebPlayer.html
UnityEditor.HostView:OnGUI()”

“Exception: Error building Player: IOException: Win32 IO returned 1224. Path: C:\Users\aernst\Documents\Dead Ringer\Temp\BuildingWebplayerTemplate\WebPlayer.html
UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:367)
UnityEditor.BuildPlayerWindow.GUIBuildButtons (Boolean enableBuildButton, Boolean enableBuildAndRunButton, Boolean canInstallInBuildFolder) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:972)
UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings () (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:953)
UnityEditor.BuildPlayerWindow.OnGUI () (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPlayerWindow.cs:726)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture)
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)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object parameters)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/GUI/DockArea.cs:225)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/GUI/DockArea.cs:218)
UnityEditor.HostView.OnGUI () (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/GUI/DockArea.cs:119)”

see this forum post. Error 1224 is ERROR_USER_MAPPED_FILE, i.e. some process has that file open already. Probably anti virus or game is running.

I had the same issue.

I temporarily disabled AVG, my anti-virus, and then it worked. Might be a coincidence, but it’s worth a try.

I had the same problem. After reading this I disabled AVG, my antivirus, and it worked.

It may be a coincidence, but it’s worth a try.

I found that using just ‘Build’ … (and NOT ‘Build and Run’), as well as making sure i have no browser open during compile, this seems to do the trick for me :wink: