.net-security

CASPOL, FullTrust and running an ActiveX Control in IE with FullTrust based on URL

I've set up an activex control to run on a webpage. The server is able to serve this webpage to itself, but other machines on the intranet and internet aren't able to access it. The Caspol settings look like this: Code Groups: 1. All code: FullTrust 1.1. Zone - MyComputer: FullTrust 1.1.1. StrongName - (omitted) : FullTru...

How to forbid calling a method C#

I want to allow calling the method only from the particular methods. Take a look at the code below. private static void TargetMethod() { } private static void ForbiddenMethod() { TargetMethod(); } private static void AllowedMethod() { TargetMethod(); } I need only AllowedMethod could call TargetMethod. H...