Subscribing to an event throws exception

Hi, I have some events I need to subscribe to from inside an assembly. This all works fine when running in the Unity editor (Edit: and also works fine inside the iPad simulator), but it throws an exception on the iPad with the following message:

This is caused by the following line:
test.SomethingHappened += HandleSomethingHappened;

Attached is a very simplified project reproducing this error. The assembly it contains was compiled as .NET 2.0 (however my other projects use 3.5, and also get the same error)

The demo contains 2 scripts, one subscribing to an event in the behavior (which works fine), and the other subscribes to an event on a class inside the assembly (which fails when running on the iPad).

Project settings:
Api Compatability Level: .NET 2.0 Subset
SDK Version: iPhone OS 4.1
Target iOS Version: 3.0
Stripping Level: Disabled
Script Call Optimization: Slow ans Dafe

422172–14660–$EventsTest.zip (55.4 KB)

Hi,
please submit a bug report and attach your sample.
Thanks!

I am hitting this problem and wondering if there is any solution?

(This may be the related fix in mono: Access Denied)

Note: I have updated and extended my AOT compatibility tool and put it on GitHub:

https://github.com/jaredthirsk/AOT-Compatlyzer/