Could not resolve type with token 01000025

Hi all,

I’m currently on the latest BETA build, I believe IAP were working before I upgraded, however I am now receiving a error within the editor.

I can’t seem to find any help on this issue anywhere else. Anyone had the same problem? How can I fix this?

TypeLoadException: Could not resolve type with token 01000025 (from typeref, class/assembly SimpleJson.SimpleJson, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)
UnityEngine.Purchasing.PurchasingManager.OnPurchaseSucceeded (System.String id, System.String receipt, System.String transactionId) (at /Users/stevenb/unity-src3/Extensions/UnityPurchasing/Runtime/Purchasing/PurchasingManager.cs:111)
UnityEngine.Purchasing.JSONStore.OnPurchaseSucceeded (System.String id, System.String receipt, System.String transactionID) (at <bb75b04c773345d791147de656bca8d1>:0)
UnityEngine.Purchasing.FakeStore.<>n__0 (System.String id, System.String receipt, System.String transactionID) (at <bb75b04c773345d791147de656bca8d1>:0)
UnityEngine.Purchasing.FakeStore+<>c__DisplayClass15_0.<FakePurchase>b__0 (System.Boolean allow, UnityEngine.Purchasing.PurchaseFailureReason failureReason) (at <bb75b04c773345d791147de656bca8d1>:0)
UnityEngine.Purchasing.FakeStore.FakePurchase (UnityEngine.Purchasing.ProductDefinition product, System.String developerPayload) (at <bb75b04c773345d791147de656bca8d1>:0)
UnityEngine.Purchasing.FakeStore.Purchase (System.String productJSON, System.String developerPayload) (at <bb75b04c773345d791147de656bca8d1>:0)
UnityEngine.Purchasing.JSONStore.Purchase (UnityEngine.Purchasing.ProductDefinition product, System.String developerPayload) (at <bb75b04c773345d791147de656bca8d1>:0)
UnityEngine.Purchasing.PurchasingManager.InitiatePurchase (UnityEngine.Purchasing.Product product, System.String developerPayload) (at /Users/stevenb/unity-src3/Extensions/UnityPurchasing/Runtime/Purchasing/PurchasingManager.cs:60)
UnityEngine.Purchasing.PurchasingManager.InitiatePurchase (UnityEngine.Purchasing.Product product) (at /Users/stevenb/unity-src3/Extensions/UnityPurchasing/Runtime/Purchasing/PurchasingManager.cs:38)
Purchasing.BuyProductID (System.String mProductId) (at Assets/Scripts/Classes/Purchasing.cs:85)
InitScreenStore+<Initiate>c__AnonStorey0.<>m__0 () (at Assets/Scripts/Classes/Screen Initialisation/Store/InitScreenStore.cs:59)
UnityEngine.Events.InvokableCall.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:166)
UnityEngine.Events.UnityEvent.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_0.cs:58)
UnityEngine.UI.Button.Press () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:36)
UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:45)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:50)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:261)
UnityEngine.EventSystems.EventSystem:Update()

What version of Unity and IAP are you using? You can find the IAP version in the changelog file located in Assets/Plugins/UnityPurchasing

Hello and thank you for the reply.

This is Unity 2018.2.0b3, IAP version 1.18. There is an active ticket for this too, added by another user.

We are not testing on beta versions of Unity, but the IAP team is aware of this issue. When you mentioned “active ticket”, are you referring to this forum post? In App Purchase Error in 2018.2.0b3 (Works in 2018.1.0f2)

Not that thread directly no.
https://issuetracker.unity3d.com/issues/iap-typeloadexception-occurs-while-using-unityengine-dot-purchasing

The IAP team is aware of the issue and working on a resolution. No ETA yet, but hopefully soon.

Hi Jeff,

Has this been fixed yet?

@AbyssEnt

This ‘SimpleJson’ bug was fixed in the latest version (2.0.3) of the “In App Purchasing” package in the Package Manager. (This is separate from the Unity IAP plugin downloaded from the Services window or Asset Store.)

If you are using Codeless IAP, there is a known issue in 1.19 of the Unity IAP plugin. It will only affect Codeless IAP in the Editor. It does not affect devices. More details here: