UnityStandaloneFileBrowser icon indicating copy to clipboard operation
UnityStandaloneFileBrowser copied to clipboard

Build Error- ArgumentException: The Assembly Mono.WebBrowser

Open tlskillman opened this issue 6 years ago • 4 comments

I'm getting this error when I build my app. Runs fine in editor. Saw hint to use .NET Standard 2.0 but still get error. Running Unity 2018.3.8f1 and I downloaded the latest UnityStandaloneFileBrowser from github. Any ideas?

ArgumentException: The Assembly Mono.WebBrowser is referenced by System.Windows.Forms ('Assets/Libraries/StandaloneFileBrowser/Plugins/System.Windows.Forms.dll'). But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:150) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:156) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:190) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

tlskillman avatar May 09 '19 01:05 tlskillman

I started having this same problem when I upgraded my framework from .NET 3.5 to .NET 4.x. I fixed it by downloading the mono.webbrowser.dll and copying it to my Plugins folder.

virgiegv avatar May 10 '19 18:05 virgiegv

Hi all, if my following workaround/fix works for you guys.

https://github.com/gkngkc/UnityStandaloneFileBrowser/issues/60#issuecomment-492055836

jusforfun avatar May 14 '19 02:05 jusforfun

I started having this same problem when I upgraded my framework from .NET 3.5 to .NET 4.x. I fixed it by downloading the mono.webbrowser.dll and copying it to my Plugins folder.

can u share from where u downloaded the .dll, I'm afraid to download a fraud version !

yassir-ouali avatar Dec 23 '19 16:12 yassir-ouali

I started having this same problem when I upgraded my framework from .NET 3.5 to .NET 4.x. I fixed it by downloading the mono.webbrowser.dll and copying it to my Plugins folder.

can u share from where u downloaded the .dll, I'm afraid to download a fraud version !

C:\Program Files\Unity\Hub\Editor\2019.3.10f1\Editor\Data\MonoBleedingEdge\lib\mono\gac\Mono.WebBrowser\4.0.0.0__0738eb9f132ed756

ghost avatar Apr 23 '20 20:04 ghost