该程序被组策略阻止.在Godaddy Windows托管中 [英] This program is blocked by group policy. in godaddy windows hosting
本文介绍了该程序被组策略阻止.在Godaddy Windows托管中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过 Godaddy 中的计划任务执行.exe
文件,但是运行此任务时会出现
I am trying to execute a .exe
file through Scheduled Tasks in Godaddy but when this task is run there is an error of
该程序被组策略阻止".
"This program is blocked by group policy".
应用程序是C#控制台应用程序.
Application is a C# console application.
推荐答案
在web.config中,注释掉<system.codedom>
中的所有内容. GoDaddy阻止了它.
In the web.config, comment out everything within <system.codedom>
. GoDaddy blocks it.
<!--<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.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.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/>
</compilers>-->
这篇关于该程序被组策略阻止.在Godaddy Windows托管中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文