This project is read-only.

LoadExtension error

Sep 11, 2014 at 9:55 AM
We are using 1.7 full version. While loading extension it is throwing an error "Object reference not set to an instance of an object." in the stack trace it is showing
at DotSpatial.Controls.DefaultRequiredImports.DockManager.Activate() in g:\TeamCity\buildAgent\work\356b083ef9ef62c7\DotSpatial.Controls\DefaultRequiredImports\DockManager.cs:line 47
at DotSpatial.Controls.AppManager.ActivateAllExtensions() in g:\TeamCity\buildAgent\work\356b083ef9ef62c7\DotSpatial.Controls\AppManager.cs:line 484
at DotSpatial.Controls.AppManager.LoadExtensions() in g:\TeamCity\buildAgent\work\356b083ef9ef62c7\DotSpatial.Controls\AppManager.cs:line 410
Sep 11, 2014 at 10:50 AM
Did you set Shell like shown below before you loaded the extensions?
using System.ComponentModel.Composition;
using System.Windows.Forms;
using DotSpatial.Controls;

public partial class MainForm : Form
        [Export("Shell", typeof(ContainerControl))]
        private static ContainerControl Shell;

        private AppManager appManager;

        public MainForm()
            appManager = new AppManager();
            Shell = this;
Marked as answer by jany_ on 9/11/2014 at 3:08 AM
Sep 11, 2014 at 11:02 AM
Thanks for your quick response, I missed-out the line Shell = this;

between any snippet code for zoom window