Page 1 of 1

4.6.3 SDK - attempting to access Plugin settings fails

Posted: Tue Dec 10, 2019 11:14 am
by toddsou
My plugin/shell package is built using the 4.6.3 SDK.

Here is a snippet of my code which is failing.

Code: Select all


var pluginMgr = serviceProvider.GetService<SelectServer>().GetService<IPluginManager>();

// Get the plugin info object of our plugin. This needs to match the "name" given in the SelectPlugin.manifest
var pluginName = "MyCompany.MyNamespace.MyPlugin";   
var pluginInfo = pluginMgr.Plugins.Where(p => p.Name == pluginName).FirstOrDefault();

Upon attempting to filter the Plugins collection, I get an error: Internal error in the expression evaluator.

I also set a breakpoint and tried using VS’ QuickWatch window to attempt to iterate the collection, but it yielded 0 items.

Help appreciated.

Thanks.