System.ArgumentException: 'Version string portion was too short or too long.'

0
0

I’m using Wisej Mobile to create my app, which, upon testing in an Android 12 phone, throws the same error everytime I try to use the Device API: System.ArgumentException: ‘Version string portion was too short or too long.’

 

Looking at the call stack, I see the error occurs when wisej tries to assest whether the device is compatible or not. The calling order is as follows:

  • Any Device subclass (in this case Popup)
  • Device.EnsureCompatibility
  • System.Version.Parse
  • System.Version.TryParse

It’s in this last one where the exception is thrown. System.Version.TryParse will try to identify two to four numbers in your version string, and assign them to Major, Minor, Build and Revision respectively. If it finds less than two or more than four it will crash, which is what’s happening right now.

 

I guess my question is how can I know why is this happening, and how to fix it. Thank you

  • You must to post comments
0
0

Hi Pablo,

Thank you for contacting support!

Would you mind trying with version 3.1.4 and/or 3.1.3 and see if that fixes the issue ?

Thanks!

Alaa

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.