SOLUTION:
I got the following error “This program is blocked by group policy. For more information, contact your system administrator.” while hosting the asp.net mvc application published copy to the godaddy account. Later I found solution for the problem. Just remove all the contents inside the system.codedom tag in web.config file.
web.config file:
Go to web.config file in the project folder then search for system.codedom tag and removed the all the contents inside the system.codedom tag. Next compile it and go to godaddy and replace it with old web.config.file .
<?xml version="1.0" encoding="utf-8"?>
<!--
------------------------------
--------------------------------
----------------------------------
-->
<configuration>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
</compilers>
</system.codedom>
</configuration>
Below video will explain how to solve this following problem “This program is blocked by group policy. For more information, contact your system administrator.”.
https://www.youtube.com/watch?v=XArc0fHKQxc
Post your comments / questions
Recent Article
- Import "django.shortcuts" could not be resolved from source in Django Project
- How to add two numbers in Android Studio? | Source Code
- FindViewByID returns null in android studio -SOLVED
- Saving changes is not permitted in SQL SERVER - [SOLVED]
- Restore of database failed. File cannot be restored over the existing. -[SOLVED]
- One or more projects in the solution were not loaded correctly in Visual Studio 2019 | FIXED
- How to find Laptop's Battery Health?
- SOLVED-Related Field got invalid lookup: icontains error in Django
Related Article