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
- How to Enable Virtualization in BIOS Security Settings in Intel Processors For Android Studio?
- Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it.
- AttributeError: 'NoneType' object has no attribute 'get_text' - Python
- ModuleNotFoundError: No module named 'openpyxl' - Python
- How to get thumbnail from vimeo video URL in Python?
- Remove all special characters, punctuation except spaces from string - Python
- OSError: cannot write mode RGBA as JPEG- Python
- expected str, bytes or os.PathLike object, not JpegImageFile - Python
Related Article