0
Pending Review

"Could not instantiate plugin Ludic.core'

theisvh 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 3

Hi

When I load the project I get this error. Have tried all kinds of updates etc. but it is still there. I think the project is running ok, but do you think it will give me problems, and if so what kind of problems. Or maybe you have a solution to gt rid of the error.

System.Reflection.TargetInvocationException: Could not instantiate plugin 'Ludiq.Core' ('LudiqCore'). ---> System.TypeInitializationException: An exception was thrown by the type initializer for Ludiq.MemberUtility ---> System.IO.FileNotFoundException: Could not load file or assembly 'Assembly-CSharp, Version=1.0.6789.15816, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'Assembly-CSharp, Version=1.0.6789.15816, Culture=neutral, PublicKeyToken=null'
at (wrapper managed-to-native) System.Reflection.MonoMethodInfo:get_method_info (intptr,System.Reflection.MonoMethodInfo&)
at System.Reflection.MonoMethodInfo.GetMethodInfo (IntPtr handle) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:59
at System.Reflection.MonoMethod.GetPseudoCustomAttributes () [0x00002] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:293
at System.MonoCustomAttrs.GetPseudoCustomAttributes (ICustomAttributeProvider obj, System.Type attributeType) [0x0000d] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoCustomAttrs.cs:78
at System.MonoCustomAttrs.GetCustomAttributesBase (ICustomAttributeProvider obj, System.Type attributeType) [0x00022] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoCustomAttrs.cs:110
at System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider obj, System.Type attributeType, Boolean inherit) [0x00035] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoCustomAttrs.cs:151
at System.Reflection.MonoMethod.GetCustomAttributes (System.Type attributeType, Boolean inherit) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:281
at System.Attribute.GetCustomAttributes (System.Reflection.MemberInfo element, Boolean inherit) [0x0002c] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Attribute.cs:265
at Ludiq.AttributeUtility+AttributeCache..ctor (System.Reflection.MemberInfo element) [0x0002c] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\AttributeUtility.cs:48
at Ludiq.AttributeUtility.GetAttributeCache (System.Reflection.MemberInfo element) [0x0002d] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\AttributeUtility.cs:217
at Ludiq.AttributeUtility.HasAttribute[ExtensionAttribute] (System.Reflection.MemberInfo element, Boolean inherit) [0x00000] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\AttributeUtility.cs:288
at Ludiq.MemberUtility.IsExtension (System.Reflection.MethodInfo methodInfo) [0x00000] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\MemberUtility.cs:152
at Ludiq.MemberUtility+<>c.<.cctor>b__0_2 (System.Reflection.MethodInfo method) [0x00000] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\MemberUtility.cs:20
at System.Linq.Enumerable+c__Iterator1D`1[System.Reflection.MethodInfo].MoveNext () [0x00000] in :0
at System.Collections.Generic.List`1[System.Reflection.MethodInfo].AddEnumerable (IEnumerable`1 enumerable) [0x0001a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:128
at System.Collections.Generic.List`1[System.Reflection.MethodInfo]..ctor (IEnumerable`1 collection) [0x00025] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:65
at System.Linq.Enumerable.ToArray[MethodInfo] (IEnumerable`1 source) [0x00000] in :0
at Ludiq.MemberUtility..cctor () [0x00000] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\MemberUtility.cs:17
--- End of inner exception stack trace ---
at Ludiq.TypeUtility.Instantiator (System.Type type, Boolean nonPublic, System.Type[] parameterTypes) [0x00051] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\TypeUtility.cs:121
at Ludiq.TypeUtility.Instantiate (System.Type type, Boolean nonPublic, System.Object[] args) [0x0003b] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\TypeUtility.cs:147
at Ludiq.PluginContainer.Initialize () [0x00023] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Editor\Dependencies\SQLite\SQLite.cs:1523
--- End of inner exception stack trace ---
at Ludiq.PluginContainer.Initialize () [0x00023] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Editor\Dependencies\SQLite\SQLite.cs:1523
at Ludiq.PluginContainer..cctor () [0x00005] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Editor\Dependencies\SQLite\SQLite.cs:1278
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hi there! Sorry you're having this issue.

The core of the error seems to be:

System.IO.FileNotFoundException: Could not load file or assembly 'Assembly-CSharp, Version=1.0.6789.15816, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Assembly-CSharp is your own custom project scripts. For some reason, Bolt fails to load it or one of its dependencies. So I have a few questions because this is the first time an error like that is reported:

  1. What Bolt version are you using?
  2. What Bolt .NET version are you using? (If you got it from the Asset Store, it's 3.x)
  3. What Unity version are you using?
  4. What Bolt .NET runtime version are you using?
  5. Did your project compile before importing Bolt?
  6. What other DLLs/dependencies do you have in your project?
  7. Do you use Assembly Definition files?

What's very weird to me is that your Assembly-CSharp assembly is strongly versioned (1.0.6789.15816). Usually it should be 1.0.0.0. So there's definitely something weird going on in that project!

  1. Bolt version: 1.4.0f3
  2. Bolt .NET version: From Asset store
  3. Unity version: 2018.2.11f1
  4. Bolt .NET runtime version: Not sure how to find that
  5. No I have not compiled before running bolt
  6. I am not sure. Do you mean other assets? then UMotion Pro, Text Mesh (Mesh Editor), UI - Gamestrap
  7. I am not sure

Sorry, I meant Unity .NET version in #4. 

What I meant by #5 is not a build, I was just wondering if you had any compile error before importing Bolt. If so, try fixing those before importing.

One thing you can try is deleting the *.csproj and *.sln in your project folder and see if it helps.