C# Security Exception

It appears you are using a Unity library but trying to run it as a standalone application?

This error means you are calling a method that is implemented within the Unity engine. You can only use the library from within Unity.

If you want to use it standalone, you'll need to compile the library without referencing any Unity libraries, which probably means you'll need to provide implementations for anything the library is using (such as MonoBehaviour

http://forum.unity3d.com/threads/c-error-ecall-methods-must-be-packaged-into-a-system-module.199361/

http://forum.unity3d.com/threads/security-exception-ecall-methods-must-be-packaged-into-a-system-module.98230/