Second drop of Entlib for Silverlight posted

Topics: Caching Application Block , Pre-release discussions, Silverlight Integration Pack, Validation Application Block
Coordinator
Mar 7, 2011 at 9:25 PM

We've posted to the Source Code the second drop of the EntLib for Silverlight. It now includes the following blocks ported:

Just like before, this drop targets VS 2010 and Silverlight 4.  Your feedback is invited.

Aug 17, 2011 at 7:54 AM
Edited Aug 17, 2011 at 8:08 AM

After looking at your video on http://channel9.msdn.com/posts/Enterprise-Library-for-Silverlight-Logging-demo

I've downloaded your sourcecode using the link located here: http://channel9.msdn.com/posts/Enterprise-Library-for-Silverlight-Logging-demo. the link itself is: http://entlib.codeplex.com/releases/view/63549

I've downloaded the enterprise library5 and silverlight integration here: http://msdn.microsoft.com/library/cc467894.aspx

I'm running into 2 issues

1- The Common.Silverlight and Logging.Silverlight project is unavailable, i guess the should be in? Could you add them or remove them completely from the solution? I removed them from the solution and application does not start complaining.

2-the Configuration.xaml is not accepted, first of all the xmlns:el="http://entlib.codeplex.com/v5/configuration" does not exist and everything is red in my xaml editor. And second of all during startup i get the following error when in the app.xaml.cs the following line is executed:

his.RootVisual = EnterpriseLibraryContainer.Current.GetInstance<MainPage>();

It results in:

{Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationErrorsException: The configuration content has an invalid format. The content should be in XAML format and the root element must be an instance of IDictionary. Each entry in the dictionary should correspond to each configuration section. ---> System.Windows.Markup.XamlParseException: The type 'LoggingSettings' was not found because 'http://entlib.codeplex.com/v5/configuration' is an unknown namespace. [Line: 6 Position: 112]
   at MS.Internal.XcpImports.CreateFromXaml(String xamlString, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers, Boolean expandTemplatesDuringParse)
   at MS.Internal.XcpImports.CreateFromXaml(String xamlString, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers)
   at System.Windows.Markup.XamlReader.Load(String xaml)
   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.DictionaryConfigurationSource.LoadResource(Uri uri, Boolean throwIfNotExists)
   --- End of inner exception stack trace ---
   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.DictionaryConfigurationSource.LoadResource(Uri uri, Boolean throwIfNotExists)
   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.DictionaryConfigurationSource.CreateDefault()
   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceFactory.Create()
   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.CreateDefaultContainer()
   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.SetCurrentContainerIfNotSet()
   at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.get_Current()
   at SilverlightLoggingDemo.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)}

I did not change anything in the configuration file and i wonder why this is happening.


Could you please help out, i'm really interested in using the remotetracelistener so i can log from silverlight to the server.

kind regards,

Niek

Aug 17, 2011 at 8:53 AM

Hi,

You need to download the Enterprise Library 5 Optional Update found here http://www.microsoft.com/download/en/details.aspx?id=6836. Also, try to re-add the Common.Silverlight and Logging.Silverlight project found in the Silverlight Integration Pack source folder and see if this works?

 

Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.
Contact Us