Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 6 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.

share|improve this answer
    
Link to the Snap-in is broken, do you know where to find it now? –  nunespascal Oct 17 '13 at 7:51
    
@nunespascal, I've updated both links. –  heavyd Oct 17 '13 at 15:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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