Exception in WinRTBridge

When running my game, I get a lot(!) of entries in the UnityPlayer.log like this:

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Object reference not set to an instance of an object.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[] args)
 
(Filename:  Line: 65)

Any idea, what causes this?

Can’t tell from this little information.
Clearly you are iterating over the collection somewhere in your scripts, but I can’t tell much more…

Are you using iTween / Playmaker by chance?

Yes, both with their corresponding additions for Windows Store.
An interesting fact is that the problem does not occur on all systems - on some (same OS) it works fine.

I believe it’s iTween that’s causing the issue. See this thread here on their support forum:

http://hutonggames.com/playmakerforum/index.php?PHPSESSID=pihr4hs3b4ank1vlaufcjobk53&topic=4751.15

As of last week they were sending out a fix to folks to messaged them directly.

I also encountered the same issue. But I am not using tween or any other programmatic animation tool.
Just after implementing a couple of game polishing changes and Splash Screen, I started having this error. Even after reverting the changes back, the error still persists there.

Please help.

What Unity version are you using?

Unity 4.3.2. The latest version. I re-downloaded 5 days back only.

Please attach UnityPlayer log.

This error does not come inside Unity. The game runs perfectly well and smooth like fluid on my PC.

Rather, the exception erupts on device’s screen. After running the build on my device, everything functions well untill I hit Play button. The moment I enter game play screen, a long list of red colored exceptions splash out on the device’s screen.

Unfortunately, I cannot copy paste that log.

You can. Or rather, unity saves everything it writes to a log file as well. The player log is located under \AppData\Local\Packages<productname>\TempState.

Thanks for sharing such a useful information.

Contents Available in Unity Player Log:

Module information:
Built with Compiler Ver ‘170060610’
Built from ‘’ branch
Version is ‘4.3.2f1 (0517a5ae8669)’
Release build
Application type ‘D3D11’
PlayerConnection initialized from C:/Users/Tarun/Desktop/New folder (5)/PanasonicNew/bin/x86/Release/AppX/Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55284
Capability ‘internetClientServer’ is required, please enable it in Package.appxmanifest, to enable Editor Profiler functionality.

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/PlatformDependent/MetroPlayer/MetroCapabilities.cpp Line: 95)

Capability ‘privateNetworkClientServer’ is required, please enable it in Package.appxmanifest, to enable Editor Profiler functionality.

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/PlatformDependent/MetroPlayer/MetroCapabilities.cpp Line: 95)

Unable to setup multicast socket for player connection.

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Network/PlayerCommunicator/PlayerConnection.cpp Line: 152)

Multi-casting “[IP] 192.168.0.10 [Port] 55284 [Flags] 2 [Guid] 1049709999 [EditorId] 254495747 [Version] 1048832 [Id] MetroPlayerX86(GameDesk) [Debug] 0” to [225.0.0.222:54997]…
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 10.1]
Renderer: ATI Radeon HD 4250 (Microsoft Corporation - WDDM v1.1) (ID=0x9715)
Vendor: ATI
VRAM: 128 MB
Initialize engine version: 4.3.2f1 (0517a5ae8669)
okBtnStyle Pressed

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

UnloadTime: 1.550755 ms
Unloading 3 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 19 unused Assets to reduce memory usage. Loaded Objects now: 142. Operation took 8.519378 ms.
System memory in use: 9.5 MB.
Ok button pressed

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

UnloadTime: 0.261066 ms
Unloading 3 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 10 unused Assets to reduce memory usage. Loaded Objects now: 142. Operation took 2.476222 ms.
System memory in use: 9.6 MB.
okBtnStyle Pressed

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

UnloadTime: 0.249333 ms
Unloading 2 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 5 unused Assets to reduce memory usage. Loaded Objects now: 140. Operation took 3.832400 ms.
System memory in use: 9.6 MB.
okBtnStyle Pressed

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

UnloadTime: 0.246400 ms
Unloading 2 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 5 unused Assets to reduce memory usage. Loaded Objects now: 140. Operation took 2.243022 ms.
System memory in use: 9.5 MB.
okBtnStyle Pressed

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

UnloadTime: 0.295777 ms
Unloading 5 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 19 unused Assets to reduce memory usage. Loaded Objects now: 605. Operation took 5.890622 ms.
System memory in use: 12.5 MB.
1

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

5

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

6

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

7

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

8

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

9

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

10

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

11

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

12

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

13

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

14

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

14

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

14

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

15

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

15

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

16

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

17

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

18

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

19

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

20

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

21

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

22

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

23

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

24

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

25

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

26

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

27

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

28

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

29

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

30

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

31

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

32

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

33

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

34

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

35

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

36

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

37

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

38

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

39

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/MetroSupportGenerated/UnityEngineDebug.cpp Line: 55)

Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: Unable to cast object of type ‘System.Int32’ to type ‘System.IConvertible’.
AdditionalInfo:Invoking System.Collections.IEnumerator::MoveNext method with argument count: 0
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)

at System.Reflection.MethodBase.Invoke(Object obj, Object[ ] parameters)

at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[ ] args)

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Scripting/WinRTUtility.cpp Line: 65)

Can you submit a bug report with a project (preferably small one), where this bug is reproducible. I remember doing some fixes in that area, perhaps something is missed or something…
Thanks.

I am also having this issue in 4.3.0. My scenario is when an event gets called in a coroutine and I call a generic method in a particular class. I have yet to be able to reproduce it outside of my project. Is there any update on this problem?

Submit it as a bug. We will look into it.