Con Permcalc.exe è possibile determinare i permessi di cui necessita un assembly (ad esempio nel caso voglia effettuare un deploy su un ambiente in medium trust):

"Starting from the entry point of the application, the tool traces all code paths through all application assemblies and the shared and system libraries called from the application. The tool maintains a simulated call stack that contains all the assemblies involved in the code path trace. On every code path trace, the tool checks for the presence of declarative demands, link demands, and declarative stack walk modifiers [..]"

Per maggiori info

powered by IMHO 1.3