4.6.3 SDK - attempting to access Plugin settings fails

Discussions related to custom development with Select.
Post Reply
Posts: 75
Joined: Wed Jul 25, 2012 9:39 am

4.6.3 SDK - attempting to access Plugin settings fails

Post 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.

PluginSettingsError.png (57.67 KiB) Viewed 29554 times
Post Reply