I am creating an application and using the InventoryDemo for a sample, specifically the navigation. However, when I execute the following line in App.xaml.cs:
Navigator.Current.RegisterNavigator("Xaml1");
I am getting some strange error as follows:
Webpage error:
Line 1
Error: 'Sys' is undefined
As for the obvious, I have Csla.Xaml added to the SL project. Here is the full error:
System.InvalidOperationException was unhandled by user code
Message=Eval failed.
StackTrace:
at System.Windows.Browser.HtmlWindow.Eval(String code)
at Csla.Xaml.Navigator.RegisterNavigator(String silverlightControlNameInWebPage)
at BelAir.App.Application_Startup(Object sender, StartupEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
InnerException:
Anyone have any ideas about this? I have got to be missing something, but I think I got everything to get things working.
Thanks in advance,
CyclingFoodmanPA
Ok, I solved the problem. I had to modify the Silverlight.js script and modify the XXXTestPage.aspx script for the navigation to work. Took me a while, but I figured it out.
Copyright (c) Marimer LLC