ReflectionTypeLoadException

Started by Alude, February 19, 2020, 11:36:23 AM

Previous topic - Next topic

Alude

so i was trying to make a mod and got this error:
Fallback handler could not load library C:/Users/skyed/Desktop/Games/RimWorld x86/RimWorldWin_Data/Mono/data-108A4018.dll
Non platform assembly: data-108A5420 (this message is harmless)
Fallback handler could not load library C:/Users/skyed/Desktop/Games/RimWorld x86/RimWorldWin_Data/Mono/data-108A5420.dll
ReflectionTypeLoadException getting types in assembly System.ValueTuple: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
  at Verse.ModAssemblyHandler.AssemblyIsUsable (System.Reflection.Assembly asm) [0x00000] in <filename unknown>:0

Loader exceptions:
   => System.TypeLoadException: Could not load type 'System.Collections.IStructuralEquatable' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
   => System.TypeLoadException: Could not load type 'System.Collections.IStructuralEquatable' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
   => System.TypeLoadException: Could not load type 'System.Collections.IStructuralEquatable' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
   => System.TypeLoadException: Could not load type 'System.Collections.IStructuralEquatable' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
   => System.TypeLoadException: Could not load type 'System.Collections.IStructuralEquatable' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
   => System.TypeLoadException: Could not load type 'System.Collections.IStructuralEquatable' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
   => System.TypeLoadException: Could not load type 'System.Collections.IStructuralEquatable' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
   => System.TypeLoadException: Could not load type 'System.Collections.IStructuralEquatable' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
   => System.TypeLoadException: Could not load type 'System.Collections.IStructuralEquatable' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.

then also this:
Exception loading list from XML: System.InvalidCastException: Cannot cast from source type to destination type.
  at (wrapper managed-to-native) object:__icall_wrapper_mono_object_castclass (object,intptr)
  at Verse.DirectXmlToObject.ObjectFromXml[CompProperties] (System.Xml.XmlNode xmlRoot, Boolean doPostLoad) [0x00000] in <filename unknown>:0
  at Verse.DirectXmlToObject.ListFromXml[CompProperties] (System.Xml.XmlNode listRootNode) [0x00000] in <filename unknown>:0
XML:
<comps><li Class="ExplosiveMining.CompMineMine"><ExplodeTicks>300</ExplodeTicks><ExplosionRadius>5</ExplosionRadius></li><li Class="CompProperties_Breakdownable" /></comps>