Author Topic: Invalid Cast Exception on deployment  (Read 3691 times)


  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Invalid Cast Exception on deployment
« on: October 19, 2014, 05:03:59 PM »
Hello, first post over here.
Im using playmaker 1.7.7.f6 Windows Phone 8 Version with almost all the possible addons (playmaker 2D, windows phone, mecanim, itween etc) latest version on all of them. Making the deployment to a device (Lumia 1520) is throwing an invalid cast exception on CallMethod.cs function DoMethodCall() I think that the exception is happening on the storeResult.SetValue(result); line. I have attached a screenshot of the VS solution. Upgrading the project to WP8.1 does not solve the issue.
Any help is greatly appreciated, if you need more info please let me know.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3637
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Invalid Cast Exception on deployment
« Reply #1 on: October 21, 2014, 08:47:22 PM »
Did you try the Call Method update here:

WP8 support should be better in the next Playmaker update, I'll PM you about access to the beta...


  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
Re: Invalid Cast Exception on deployment
« Reply #2 on: May 22, 2015, 10:31:36 AM »

I am running into the exact same problem.
I also tried the Call Method update, but no luck.

Does the latest version of PlayMaker on the asset store ( fix the issue or is there a beta still in progress?

Regarding versions, I noticed that after applying the Windows Phone 8 addon, the version of PlayMaker.dll is reported as Is there a newer one available?

Hmm, just found this:

...wondering my team didn't upgrade PlayMaker the right way?
Will poke at it some more to see. Any info you can provide would be helpful.

- Those instructions are for Unity 5, we are not there yet, still on Unity 4.6.4.f1.

Any chance there are PlayMaker Windows Phone 8 fixes for Unity 4.6.4f1, or do we need to go to Unity 5?


« Last Edit: May 22, 2015, 11:29:40 AM by mgants »