AnsweredAssumed Answered

How to resolve TaskCancelledException in mscorlib.dll?

Question asked by vwadhwa52 on Aug 4, 2018
Latest reply on Aug 6, 2018 by JNery-esristaff

I am trying to explore the SketchEditor feature. I am trying to use the sketch editor in my application using MVVM pattern. The code of DRAW and EDIT , is written in ViewModel Class, whereas the COMPLETE button is binded to the CompleteCommand of SketchEditor. DRAW operation works absolutely fine on MouseDownEvent, but when I go for Edit , I get TaskCancelled Exception on line 
var mapPoint = (MapPoint)await MyMapView.SketchEditor.StartAsync(SketchCreationMode.Point, false);

I am unable to understand why such problem is coming ??

   The code runs absoultely fine , If I write everything in the code behind file ..

Can anyone help me with this issue ?