A shell has already been registered. Only shell can be registered.

Jan 29, 2013 at 5:29 AM

Is this something to do with Apex? Because everytime I open the MainView.xaml from the Zune (WPF) template, this error occurs. Any thoughts?

A shell has already been registered. Only shell can be registered.
at Apex.ApexBroker.RegisterShell(IShell shell)
   at Apex.Shells.Shell.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at Microsoft.Expression.Platform.WPF.WpfViewNodeManager.EnsureElementInDictionary(Object root, ViewNode knownAncestor)

Coordinator
Jan 29, 2013 at 7:11 AM

Hi,

I think you have found a bug in Apex that occurs during design time.

The shell is the outermost object in the view, which handles popups and so on. It can be accessed via any child object (to open popups or handle drag and drop) but there must only be one. I think when you open the view in the designer, the shell is registered, then when you go back to the designer, the same shell tries to register again. I'll raise this as a bug and get it fixed asap :)

Jan 29, 2013 at 7:23 AM

Wow, that's very nice. Thanks for your reply. You did a great job with Apex. Can't wait for the fixed bug. Kudos!

Coordinator
Jan 29, 2013 at 7:40 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.