May 04, 2015 09:23 PM|Li Wang|LINK
According to your description, you could use .net cas component.
.NET enforces security polices around assemblies. It uses the evidence that an assembly has, such as the origination of the file. The runtime places all code from the local intranet into a specific group. It then uses the security policies to decide what
permissions the code should be granted at a granular level.
Below linkes are for your reference