ArcGISPortal.CreateAsync() "No parameterless constructor defined for this object."

351
2
Jump to solution
01-31-2017 02:31 PM
BrianCampbell1
New Contributor

In UWP projects, I get a System.MissingMethodException ("No parameterless constructor defined for this object.") in mscorlib.ni.dll whenever I call ArcGISPortal.CreateAsync() or any of its overloaded variants.

The code works perfectly for the iOS and Android Xamarin.Forms projects in the same solution.

Any suggestions?

0 Kudos
1 Solution

Accepted Solutions
AnttiKajanus1
Regular Contributor II

I assume that you are using UWP with NetCore 5.2.2 which as a bug on the serialization code. This is mentioned in Release notes and you can solve by either using different NetCore version or following workaround. Let me know if this solves your issue.

View solution in original post

0 Kudos
2 Replies
AnttiKajanus1
Regular Contributor II

I assume that you are using UWP with NetCore 5.2.2 which as a bug on the serialization code. This is mentioned in Release notes and you can solve by either using different NetCore version or following workaround. Let me know if this solves your issue.

View solution in original post

0 Kudos
BrianCampbell1
New Contributor

This worked perfectly, Thanks.

I reverted to NetCore 5.1.0

0 Kudos