当前位置:网站首页>Win32Exception (0x80004005): 组策略阻止了这个程序。要获取详细信息,请与系统管理员联系。
Win32Exception (0x80004005): 组策略阻止了这个程序。要获取详细信息,请与系统管理员联系。
2022-06-29 09:26:00 【zlbcdn】
用阿里云上传代码后,访问网站,出现如下错误:
----------错误界面的信息---------------
“/”应用程序中的服务器错误。
组策略阻止了这个程序。要获取详细信息,请与系统管理员联系。
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ComponentModel.Win32Exception: 组策略阻止了这个程序。要获取详细信息,请与系统管理员联系。
源错误:
执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[Win32Exception (0x80004005): 组策略阻止了这个程序。要获取详细信息,请与系统管理员联系。]
[ExternalException (0x80004005): 无法执行程序。所执行的命令为 “f:\usr\LocalUser\bxw23*******\bin\roslyn\csc.exe” /shared /keepalive:“10” /noconfig /fullpaths @“C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\63cb5cf8\b0070fdf\4auhg5zi.cmdline”。]
System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +6487183
System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +115
System.CodeDom.Compiler.Executor.ExecWaitWithCapture(IntPtr userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName) +59
Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.Compile(CompilerParameters options, String compilerFullPath, String arguments, String& outputFile, Int32& nativeReturnValue) +270
Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch(CompilerParameters options, String[] fileNames) +680
Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +186
System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +23
System.Web.Compilation.AssemblyBuilder.Compile() +884
System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +9520058
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +9950660
System.Web.Compilation.BuildManager.CompileGlobalAsax() +44
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +269
[HttpException (0x80004005): 无法执行程序。所执行的命令为 “f:\usr\LocalUser\bxw23*******\bin\roslyn\csc.exe” /shared /keepalive:“10” /noconfig /fullpaths @“C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\63cb5cf8\b0070fdf\4auhg5zi.cmdline”。]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +62
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +427
System.Web.Compilation.BuildManager.CallAppInitializeMethod() +31
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +535
[HttpException (0x80004005): 无法执行程序。所执行的命令为 “f:\usr\LocalUser\bxw23*****\bin\roslyn\csc.exe” /shared /keepalive:“10” /noconfig /fullpaths @“C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\63cb5cf8\b0070fdf\4auhg5zi.cmdline”。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9952212
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +456
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34280
----------错误界面的信息---------------
错误截图
晚上搜索信息找到解决方案:
打开nuget,然后卸载Microsoft.CodeDom.Providers.DotNetCompilerPlatform 包,重新编译发布
具体操作如下:

参考资料:参考资料
边栏推荐
猜你喜欢

Function pointer, function pointer array, calculator + transfer table, etc

十六制计数器和流水灯

Beautiful ruins around Kiev -- a safe guide to Chernobyl!

Recyclerview sticky (suspended) head

Alibaba cloud firewall configuration, multiple settings (iptables and firewall)

520 钻石争霸赛 2021

EDA与VHDL题库

Seaweedfs security configuration

JVM method return address

Six dimensional space BFS
随机推荐
Ce projet Open source est super wow, des photos manuscrites sont générées en ligne
Recurrence of vulnerability analysis for Cisco ASA, FTD and hyperflex HX
Codeforces Round #659 (Div. 2)
Ural1517 freedom of choice [suffix array: longest common continuous substring]
Shanke's C language 2018 exercise (Telecom)
Setinterval, setTimeout and requestanimationframe
September 23, 2020 left and right values reference std:: move()
Rikka with cake (segment tree + segment tree)
【51nod 1215】数组的宽度
指针数组、数组指针和传参的相关问题
1021 deep root (25 points)
Codeforces Round #657 Div. 2
C#中IEqualityComparer接口的实现
信号作品:时变和时不变
L2-031 go deep into the tiger's den (25 points)
2019.11.3 learning summary
Nacos registry cluster
2020-9-14 introduction to advertising system
Download control 1 of custom control (downloadview1)
2020-09-21 visual studio header file and Library Directory configuration