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?

link|improve this question

74% accept rate
feedback

1 Answer

up vote 3 down vote accepted

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.