iOS Unified Navigateservice.navigate error

1 reply. Last post: January 16, 2015 6:04 AM by leo Chandra
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Ryan HermanMember

I'm having issue navigating after making a new view controller and trying to navigate to it.  I can provide a sample if needed but here is the stack trace.


Maybe you already know of the issue.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Object reference not set to an instance of an object


  at Intersoft.Crosslight.iOS.UIViewControllerExtensions.GetParentViewController (UIKit.UIViewController viewController, System.Type parentViewControllerType) [0x00000] in <filename unknown>:0


 at Intersoft.Crosslight.iOS.Services.NavigationService.Navigate (Intersoft.Crosslight.NavigationTarget target, System.Action`1 resultCallback) [0x00000] in <filename unknown>:0


  at Intersoft.Crosslight.iOS.Services.NavigationService.Navigate (Intersoft.Crosslight.NavigationTarget target) [0x00000] in <filename unknown>:0


  at Intersoft.Crosslight.iOS.Services.NavigationService.Navigate[HomeViewModel] () [0x00000] in <filename unknown>:0


  at Incroud.ViewModels.NewLoginViewModel..ctor () [0x00000] in <filename unknown>:0


  at at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)


  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:537


  --- End of inner exception stack trace ---


  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00016] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:543


  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x000af] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Activator.cs:329


  at System.Activator.CreateInstance (System.Type type) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Activator.cs:222


  at Intersoft.Crosslight.iOS.UIViewController`1[Incroud.ViewModels.NewLoginViewModel].CreateViewModel () [0x00000] in <filename unknown>:0


  at Intersoft.Crosslight.iOS.UIViewController`1[Incroud.ViewModels.NewLoginViewModel].EnsureViewModel (Boolean initializeEvents) [0x00000] in <filename unknown>:0


  at Intersoft.Crosslight.iOS.UIViewController`1[Incroud.ViewModels.NewLoginViewModel].Intersoft.Crosslight.ISupportViewModel.get_ViewModel () [0x00000] in <filename unknown>:0


  at Intersoft.Crosslight.iOS.UIApplicationDelegate.FinishedLaunching (UIKit.UIApplication application, Foundation.NSDictionary launchOptions) [0x00000] in <filename unknown>:0


  at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)


  at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62


  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46


  at Incroud.iOS.Application.Main (System.String[] args) [0x00008] in /Users/ryan/Dropbox (Personal)/app/Incroud/Incroud.iOS/Main.cs:15

 


All times are GMT -5. The time now is 9:23 PM.
Previous Next