title: Web.config causing "blocked by group policy" error
body: <p>The myriad of different <em>web.config</em> settings have always been a bit of a mystery to me. I'm glad Microsoft has cleaned up some of the content put there by default, but it's still causing problems.</p>
  <p>Specifically, Visual Studio 2015 is placing the following section in the generated <em>web.config</em> of a standard ASP.NET MVC application.</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;system.codedom&gt;
    &lt;compilers&gt;
      &lt;compiler language=&quot;c#;cs;csharp&quot; extension=&quot;.cs&quot;
        type=&quot;Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;
        warningLevel=&quot;4&quot; compilerOptions=&quot;/langversion:6 /nowarn:1659;1699;1701&quot;/&gt;
     &lt;compiler language=&quot;vb;vbs;visualbasic;vbscript&quot; extension=&quot;.vb&quot;
        type=&quot;Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;
        warningLevel=&quot;4&quot; compilerOptions=&quot;/langversion:14 /nowarn:41008 /define:_MYTYPE=\&amp;quot;Web\&amp;quot; /optionInfer+&quot;/&gt;
    &lt;/compilers&gt;
  &lt;/system.codedom&gt;
  </code></pre>
  <p>When I upload this application to my GoDaddy shared Plesk hosting account, I get the following error.</p>
  <blockquote>
  <p>This program is blocked by group policy. For more information, contact your system administrator.</p>
  </blockquote>
  <p>GoDaddy support is completely unwilling and unable to provide any assistance. However, I found that if I comment out the section above, the error goes away.</p>
  <p>Does anyone know the purpose of this block or why Microsoft puts it there? My app seems to run okay without it.</p>