Business Process Error System.Security.SecurityException: Request for the permission of type \'System.Security.Permissions.FileIOPermis
If your plugin is registered in sandbox then this could be the problem. Try to register it outside of the sandbox. Here you can find information about trust levels