Quantcast
Channel: Questions in topic: "dllnotfoundexception"
Viewing all articles
Browse latest Browse all 201

Dll is not allowed or could not be found

$
0
0
The exact issue I'm having is with the System.Windows.Forms.dll. I needed to implement it to write to a spreadsheet. It works exactly as desired if I run the application in the Unity Editor but trying to build it produces an error:> ArgumentException: The Assembly> System.Deployment is referenced by> System.Windows.Forms> ('Assets/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.List`1> alreadyFoundAssemblies,> System.String[] allAssemblyPaths,> System.String[] foldersToSearch,> System.Collections.Generic.Dictionary`2> cache, BuildTarget target) (at> C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:142)> UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse> (System.String assemblyPath,> System.Collections.Generic.List`1> alreadyFoundAssemblies,> System.String[] allAssemblyPaths,> System.String[] foldersToSearch,> System.Collections.Generic.Dictionary`2> cache, BuildTarget target) (at> C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:148)> UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse> (System.String assemblyPath,> System.Collections.Generic.List`1> alreadyFoundAssemblies,> System.String[] allAssemblyPaths,> System.String[] foldersToSearch,> System.Collections.Generic.Dictionary`2> cache, BuildTarget target) (at> C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:148)> UnityEditor.AssemblyHelper.FindAssembliesReferencedBy> (System.String[] paths,> System.String[] foldersToSearch,> BuildTarget target) (at> C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)> UnityEditor.HostView:OnGUI() Looking around I saw and tried solutions from downloading and installing other dlls (system.configuration and system.security), changing the settings on the playersettings api compatiablility level from .Net 2.0 sub to just .Net 2.0 Any other possibly relevant info: Build is for windows, running on Win 10, Unity version is 2017.1.1f1. Thanks Everyone

Viewing all articles
Browse latest Browse all 201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>