Exception when starting OpenTK application in .NET 4.0


Seriously annoying exception in WinDeviceDriver constructor because of 'transparent' code accessing 'security critical...' yada yada yada.  Turns out .Net 4.0 has some trumped up security code so Microsoft can break everything.

Anyway, the workaround is this:

In the AssemblyInfo.cs file of the assembly containing the offending class (OpenTK in this case), add:
[assembly: SecurityRules(SecurityRuleSet.Level1)]

et voila!

Comments

Popular posts from this blog

Micro:Bit and SPI display

DCS World with TrackIR under Ubuntu

Polygon Triangulator!!