Error while activating dotspatail Plugins

Jul 3, 2015 at 6:38 PM
Hi,

I'm new to programming and dotspatial 1.7.

I made an application and all the basics work fine (legend, map, symbology etc) work great except toolbox.

When I try to load extensions, I get the following error.

Error while activating dotspatail.plugins.webmap.webmapplugin, DotSpatial.Plugins.Webmap, Version=1.1.0.0, Culture=neutral, PuyblicKeyToken=null

(this happens with other extensions as well)


some other extensions work fine like the GDAL (so I know some extensions are loading)

How do I get past the "Error while activating" issue? What am I doing wrong or forgetting to do? I've been reading for days on this site and google searches. I can't figure this out

Please help!
Developer
Jul 6, 2015 at 4:53 PM
Did you set the Shell like shown below? If not some of the Extensions might throw errors.

[Export("Shell", typeof(ContainerControl))]
    private static ContainerControl Shell;

    public MainForm()
    {
        InitializeComponent();

        if (DesignMode) return;
        Shell = this;
        appManager.LoadExtensions();
    }
If you did set the shell your error might come from a missing DockManager, HeaderControl or StatusControl.
Marked as answer by jany_ on 7/8/2015 at 10:40 PM
Jul 8, 2015 at 9:10 PM
Thank you so much, your solution worked perfectly!