- Home /
The Assembly UnityEngine.WebGLModule is referenced by UnityEngine but the dll is not allowed to be included or could not be found
ArgumentException: The Assembly UnityEngine.WebGLModule is referenced by UnityEngine ('C:/Program Files/Unity/Hub/Editor/2020.3.19f1/Editor/Data/PlaybackEngines/WebGLSupport/Managed/UnityEngine.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <97ba64834c8f4edc84e3d8e30b04f122>:0)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at <97ba64834c8f4edc84e3d8e30b04f122>:0)
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)
Unity.Play.Publisher.Editor.PublisherBuildProcessor:OpenBuildGameDialog(BuildTarget) (at Library/PackageCache/com.unity.connect.share@4.1.1/Editor/PublisherBuildProcessor.cs:180)
Unity.Play.Publisher.Editor.PublisherWindow:OnWebGLBuildTargetSet() (at Library/PackageCache/com.unity.connect.share@4.1.1/Editor/PublisherWindow.cs:734)
Unity.Play.Publisher.Editor.PublisherWindow:OnCreateABuildClicked() (at Library/PackageCache/com.unity.connect.share@4.1.1/Editor/PublisherWindow.cs:509)
Unity.Play.Publisher.Editor.<>c__DisplayClass75_0:b__0() (at Library/PackageCache/com.unity.connect.share@4.1.1/Editor/PublisherWindow.cs:627)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Did you take a look at:
Did you also tried to reinstall Unity? And recreate your project?
Answer by SamyBoyJim · Oct 04, 2021 at 11:27 PM
Hi!
Are you trying to build the game to a folder inside the assets folder? I tried to do this a while ago and you can't because it tries to build the assets and if you include the game within those assets then it breaks. The error says that it cannot be included or found so I think it is talking about the build destination.
Hope this helps!
Thanks, that fixed that error, but another error occurred.
Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.3.19f1\Editor\Data\il2cpp\build/deploy/netcoreapp3.1/UnityLinker.exe @"C:/Users/monke/Practice Project 1, October 5th/Temp/StagingArea/Data/Managed/response.rsp"
stdout: Fatal error in Unity CIL Linker System.IO.FileNotFoundException: Could not find file 'C:\Users\monke\Practice Project 1'. File name: 'C:\Users\monke\Practice Project 1' at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space) at System.Xml.XPath.XPathDocument..ctor(String uri, XmlSpace space) at Unity.Linker.UnityDriver.ParseArguments(UnityPipeline p, UnityLinkContext context, ArrayList custom_steps, Boolean usingCustomLogger, I18nAssemblies& assemblies) at Unity.Linker.UnityDriver.UnityRun(ILogger customLogger) at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling(ILogger customLogger) at Unity.Linker.UnityDriver.RunDriver() stderr:
Hi!
I did a bit of research and I think the problem is either to do with unity editor version 2017 or exporting to iOS or both. I don’t think there is a fix other than not exporting to iOS or using a different version.
Hope this helps!
Your answer
![](https://koobas.hobune.stream/wayback/20220613043821im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
publish button for webGL project is not available 1 Answer
Is WebGL Publisher the same as Share WebGL game? If so, how do I share with it? 0 Answers
WebGL Build - Video Player Shows Black Screen in all Browsers 1 Answer
Why are my games not loading on itch.io? 2 Answers
Unity5 Web GL Build Size 1 Answer