caspol and .NET configuration tool

12,619

If you are using .NET 4.0 you don't need caspol.exe or Mscorcfg.msc. There were some big changes in Code Access Security(CAS) in .NET 4.0 which eliminated the need for the two tools.

You can find out more about Mscorcfg.msc snap-in here. It is basically a nice GUI interface to the caspol.exe Code Access Security policy editor command-line utility.

Share:
12,619

Related videos on Youtube

Obi Wan Kenobi
Author by

Obi Wan Kenobi

Updated on September 17, 2022

Comments

  • Obi Wan Kenobi
    Obi Wan Kenobi almost 2 years

    I see that .NET configuration tool is not provided anymore with .NET 4.0 (Windows 7), but this site explains about the tool 'caspol' and .NET Framework Configuration tool (Mscorcfg.msc).

    How can I use caspol.exe to generate configration XML file? This site explains about .NET configuration tool to generate the config XML file automatically. I want to know how to do that with caspol.exe.

    <?xml version="1.0"?>
    <configuration>
       <runtime>
          <gcConcurrent enabled="true" />
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <publisherPolicy apply="yes" />
         <probing privatePath="bin;bin2" />
          </assemblyBinding>
       </runtime>
    </configuration>
    

    And, what is Mscorcfg.msc? How can I run/use this tool?

  • nunespascal
    nunespascal over 10 years
    Link to the Snap-in is broken, do you know where to find it now?
  • heavyd
    heavyd over 10 years
    @nunespascal, I've updated both links.