tags:

views:

13

answers:

1

I have .Net framework 4.0. It doesn't provide the Configuration tool as earlier versions did.

With framework 4.0, how do we see the permissions given to an assembly?

A: 

Short answer is that "You don't see them anymore".

.NET Framework 4 introduced many changes to the .NET application's security model. Here are two good introductions on the subject:

One of the biggest changes is that the machine-wide policy control has been disabled by default and all the managed code runs as fully trusted by default. Microsoft recommends that instead of using a machine-wide CAS policy, one should look for solutions like Windows Software Restriction Policies. From now on, assemblies' security level should be controller by the host (your application). If one still wants to use the old CAS policy, the following configuration switch provides a legacy security model:

<configuration>
  <runtime>
     <!-- enables legacy CAS policy for this process -->
     <NetFx40_LegacySecurityPolicy enabled="true" />
  </runtime>
</configuration>

So, you don't have to worry about the machine-level assembly permissions anymore when running a .NET Framework 4 software. You use your own application (the host) to control the permissions.

Mikael Koskinen