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
|