I get this strange exception when I attempt to run the DoConvert method of the pdfkit. This is in Visual Studio 2010, .net framework 4.0, pdfkit version 4.6:
Attempt by security transparent method 'xeb116a323308e2f7.xac95a1ca7d28b25a.xcec56c0fd092d878()' to access security critical method 'System.Management.ManagementObjectSearcher..ctor(System.String)' failed.
Assembly 'Aspose.Pdf.Kit, Version=220.127.116.11, Culture=neutral, PublicKeyToken=ae9e610db67fc2c1' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model. Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.
I tried adding
To my app, but that didn't help. Any help would be appreciated.