Ribbon Control occurred unknown error during load a module which is

Ribbon for WPF Forum

Posted 7 years ago by Jung-ho Kwun
Version: 12.1.0560
Avatar

Some times (very frequently) my application occurred error bellow. It's more frequently occured low performonce computer especially at VMWare.

2013-04-16 17:12:09.240	Debug	Low	Logger was created successfully.
2013-04-16 17:12:09.240	Debug	Low	Creating module catalog.
2013-04-16 17:12:09.240	Debug	Low	Configuring module catalog.
2013-04-16 17:12:09.240	Debug	Low	Creating catalog for MEF
2013-04-16 17:12:09.240	Debug	Low	Configuring catalog for MEF
2013-04-16 17:12:09.240	Debug	Low	Creating Mef container
2013-04-16 17:12:09.240	Debug	Low	Configuring MEF container
2013-04-16 17:12:09.240	Debug	Low	Configuring ServiceLocator singleton
2013-04-16 17:12:09.240	Debug	Low	Configuring region adapters
2013-04-16 17:12:09.240	Debug	Low	Configuring default region behaviors
2013-04-16 17:12:09.240	Debug	Low	Registering Framework Exception Types
2013-04-16 17:12:09.240	Debug	Low	Creating shell
2013-04-16 17:12:10.207	Debug	Low	Setting the RegionManager.
2013-04-16 17:12:10.207	Debug	Low	Updating Regions.
2013-04-16 17:12:10.238	Debug	Low	Initializing shell
2013-04-16 17:12:11.580	Debug	Low	Initializing modules
2013-04-16 17:12:11.919	Exception	High	Microsoft.Practices.Prism.Modularity.ModuleInitializeException: An exception occurred while initializing module 'IntelliMineModule'. 
    - The exception message was: Value cannot be null.
Parameter name: d
    - The Assembly that the module was trying to be loaded from was:BISTel.eDataLyzer.IntelliMine, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null
    Check the InnerException property of the exception for more information. If the exception occurred while creating an object in a DI container, you can exception.GetRootException() to help locate the root cause of the problem. 
   ---> System.ArgumentNullException: Value cannot be null.
Parameter name: d
   at MS.Internal.Data.ElementObjectRef.GetObject(DependencyObject d, ObjectRefArgs args)
   at MS.Internal.Data.ObjectRef.GetDataObject(DependencyObject d, ObjectRefArgs args)
   at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.VerifySourceReference(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Run(Object arg)
   at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.UIElement.UpdateLayout()
   at ActiproSoftware.Windows.Controls.Ribbon.Controls.Primitives.TabStrip.#dtb(Double #0cc)
   at ActiproSoftware.Windows.Controls.Ribbon.Controls.Primitives.TabStrip.OnItemsChanged(NotifyCollectionChangedEventArgs e)
   at System.Windows.Controls.ItemsControl.OnItemCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Controls.ItemCollection.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
   at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.ListCollectionView.RefreshOverride()
   at System.Windows.Data.CollectionView.RefreshOrDefer()
   at System.Windows.Data.ListCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at ActiproSoftware.Windows.DeferrableObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at ActiproSoftware.Windows.Controls.Ribbon.Collections.RibbonControlCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at ActiproSoftware.Windows.DeferrableObservableCollection`1.EndUpdate()
   at ActiproSoftware.Windows.Controls.Ribbon.Ribbon.#Axb()
   at ActiproSoftware.Windows.Controls.Ribbon.Ribbon.#dyb(Object #xhb, NotifyCollectionChangedEventArgs #yhb)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at ActiproSoftware.Windows.DeferrableObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at ActiproSoftware.Windows.Controls.Ribbon.Collections.RibbonControlCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   at ActiproSoftware.Windows.DeferrableObservableCollection`1.InsertItem(Int32 index, T item)
   at System.Collections.ObjectModel.Collection`1.Add(T item)
   at BISTel.eDataLyzer.Client.RibbonHandlingBehavior.CreateThenRegisterTab(MenuViewModel menu) in G:\BISTel\branches\site\Silterra\edatalyzer\src\eDataLyzer\BISTel.eDataLyzer.Client\RibbonHandlingBehavior.cs:line 200
   at BISTel.eDataLyzer.Client.RibbonHandlingBehavior.RetrieveAndRegister(MenuViewModel menu) in G:\BISTel\branches\site\Silterra\edatalyzer\src\eDataLyzer\BISTel.eDataLyzer.Client\RibbonHandlingBehavior.cs:line 188
   at BISTel.eDataLyzer.Client.RibbonHandlingBehavior.MenusOnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) in G:\BISTel\branches\site\Silterra\edatalyzer\src\eDataLyzer\BISTel.eDataLyzer.Client\RibbonHandlingBehavior.cs:line 181
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   at System.Collections.ObjectModel.Collection`1.Add(T item)
   at BISTel.eDataLyzer.Client.MenuManager.AddMenu(MenuViewModel menu) in G:\BISTel\branches\site\Silterra\edatalyzer\src\eDataLyzer\BISTel.eDataLyzer.Client\MenuManager.cs:line 61
   at BISTel.eDataLyzer.IntelliMine.IntelliMineModule.Initialize() in G:\BISTel\branches\site\Silterra\edatalyzer\src\eDataLyzer\BISTel.eDataLyzer.IntelliMine\IntelliMineModule.cs:line 38
   at Microsoft.Practices.Prism.Modularity.ModuleInitializer.Initialize(ModuleInfo moduleInfo)
   --- End of inner exception stack trace ---

I used Prism, MEFed and MVVM on my application.

It occurred error when the module is loading which is add a ViewModel for Ribbon menu.

I don't know why it come error. Do you have any report like this from any other customer?

Comments (1)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, sorry but we haven't had any reports of something like that.  If you can repro it in a very simple sample project, please send it to our support address and reference this post.  Rename the .zip file extension so it doesn't get spam blocked.  Thanks!


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.