Csla.XAML Problem/Question

Csla.XAML Problem/Question

Old forum URL: forums.lhotka.net/forums/t/10052.aspx

CyclingFoodmanPA posted on Wednesday, February 09, 2011

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:
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.
       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)

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 replied on Wednesday, February 09, 2011

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