iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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
Hi Ryan Herman,
To used Xamarin Unified API you must upgrade your project with Project Migration tool that is exist in Xamarin Studio. You could refer to http://blog.intersoftpt.com/2014/12/crosslight-introduces-support-for-xamarin-unified-api/ for more information regarding it.
Basically the step are the following:1. Select iOS project and Migrate it by selecting Project > Migrate to Xamarin.iOS Unified API.2. Remove existing Intersoft.Crosslight.iOS assemblies under iOS project.3. Add the new Intersoft.Crosslight.iOS Unified assemblies from the bin\iOS.Unified folder.
Please inform me whether your project have been migrate using above step or using other scenario.If the problem still persist after the migration, please kindly provide me with a sample if possible.
Thanks you.
Best Regards,Leo
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname