Closed drok closed 3 years ago
This is also triggered as "Cannot cast from source type to destination type",
ModException: The Mod C:\Program Files (x86)\Steam\steamapps\workshop\content\255710\2053500739 [AdvancedOutsideConnection.dll] has caused an error ---> System.InvalidCastException: Cannot cast from source type to destination type.
at Harmony.PatchInfoSerialization.Deserialize (byte[]) <0x000fc>
at Harmony.HarmonySharedState.GetPatchInfo (System.Reflection.MethodBase) <0x0006b>
at Harmony.PatchProcessor.Patch () <0x001bd>
at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type) <0x000ed>
at Harmony.CollectionExtensions.Do<System.Type> (System.Collections.Generic.IEnumerable`1<System.Type>,System.Action`1<System.Type>) <0x000a7>
at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly) <0x00087>
at Harmony.HarmonyInstance.PatchAll () <0x000b8>
at AdvancedOutsideConnection.LoadingExtension.Init (bool) <0x0002e>
at AdvancedOutsideConnection.LoadingExtension.OnLevelLoaded (ICities.LoadMode) <0x00031>
at (wrapper dynamic-method) LoadingWrapper.LoadingWrapper.OnLevelLoaded_Patch5 (LoadingWrapper,SimulationManager/UpdateMode) <0x000b9>
--- End of inner exception stack trace ---
Fixed in 8f1c006 Verified by OR
When turning off the Extended Error Reporting mod (Harmony 1.2.0.1), it causes a HarmonyLib deserialization error:
System.TypeLoadException: Could not load type 'Harmony.Patch[]
HarmonyLib.PatchInfoSerialization.Deserialize