- Home /
InControl does not work as a managed DLL.
I am trying to get InControl ( https://www.assetstore.unity3d.com/en/#!/content/14695 ) to work in a manged DLL. I have taken out all .cs files and tried it normally in the asset folder and it works. But if a but it in a dll i get the following errors:
"Loading script assembly "Assets/Libraries/InControl.dll" failed!"
"ReflectionTypeLoadException: The classes in the module cannot be loaded. System.Reflection.Assembly.GetTypes () (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/Assembly.cs:371) UnityEditor.Events.InterceptedEventsPreview.GetEventsInfo (UnityEngine.GameObject gameObject) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEditor.UI/UI/InterceptedEventsPreview.cs:162) UnityEditor.Events.InterceptedEventsPreview.Initialize (UnityEngine.Object[] targets) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEditor.UI/UI/InterceptedEventsPreview.cs:61) UnityEditor.InspectorWindow.GetPreviewsForType (UnityEditor.Editor editor) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:304) UnityEditor.InspectorWindow.CreatePreviewables () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:272) UnityEditor.InspectorWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:334) 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-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)"
I have no idea what to look for.
Any ideas?
Your answer
![](https://koobas.hobune.stream/wayback/20220612000723im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
Importing a DLL that contains C#-wrapped C++ Code 0 Answers
System.EntryPointNotFoundException: CreateNLSocket 1 Answer
NuGetForUnity not working with .NET 4.x? 0 Answers
Unity and MathNET 5 Answers