Castle ProxyGenerator + Line-level Profiling
Since some time around .NET 4.5, Windows 7, Performance Profiler 8, and Castle 3.2.0... line level profiling results in a security exception trying to construct a DynamicProxy ProxyGenerator instance.
I don't think this was an issue before, but I really don't know when it became a problem. Everything works fine when using method level profiling, however, the moment I switch to line-level it breaks down and I end up with an unhandled exception that takes down the application.
Any help with this would be greatly appreciated!