When a plugin is triggered, a TypeLoadException error occurrs and it mentions that the plugin cannot load anything from other assemblies in GAC.

OR if you click to open more details about the error you find:

<Message>Could not load type ‘<classname>‘ from assembly ‘<namespace>, Version=, Culture=neutral, PublicKeyToken=50c75133acc12e13′.</Message>


<Message>Unexpected exception from plug-in (Execute): Plugin.Task.PostTaskUpdate: System.MethodAccessException: Attempt by security transparent method ‘Plugin.Task.PostTaskUpdate.ExecuteMethod(LocalPluginContext)’ to access security critical method ‘Plugin.Common.MyClass..ctor()’ failed.


Assembly ‘Plugin.MyClass, Version=, Culture=neutral, PublicKeyToken=00b34ecdd47d454b’ is partially trusted, which causes the CLR to make it entirely security transparent regardless of any transparency annotations in the assembly itself.  In order to access security critical code, this assembly must be fully trusted.</Message>

My Resolution

Make sure plugin is not registered in sandbox mode.

This entry was posted in Error, Plugins, Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s