Silverlight Navigator control

Silverlight Navigator control

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


Dexter posted on Friday, March 20, 2009

Hi

I am starting a silverlight project using csla 3.6.2.

I have downloaded the samples to get me started.

I have being trying to use the Navigator control supplied in the framework, however even in the sample i get the bellow error

System.InvalidOperationException was unhandled by user code
  Message="Eval failed."
  StackTrace:
       at System.Windows.Browser.HtmlWindow.Eval(String code)
       at Csla.Silverlight.Navigator.RegisterNavigator(String silverlightControlNameInWebPage)
       at InventoryDemo.App.Application_Startup(Object sender, StartupEventArgs e)
       at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)

Is this due to any browser settings required, and if not has anyone got any ideas as to what the problem might be?

Thanks a lot

Dexter

 

 

RockfordLhotka replied on Friday, March 20, 2009

I'm going to guess that this occurs because it can't resolve "Sys."?

I've run into this a couple times, and the issue is that the AJAX extensions for ASP.NET aren't installed on your machine, or (these days it is more likely that they) aren't configured properly in your web project.

Compare your web.config to the sample app's web.config and your web page to the same web page. I don't remember the exact content - but I know for sure that there's a bit of html that must be in the web page to enable the AJAX extensions, and there might be something in web.config as well.

Mustang2007 replied on Wednesday, April 08, 2009

I am getting this error when trying to run the inventory example downloaded from the site today. Have i missed a setup step?

RockfordLhotka replied on Wednesday, April 08, 2009

Did you make sure the web project is the startup project, and the sample
page is the startup page?

Copyright (c) Marimer LLC