asp.net - 网站无法运行 服务器/应用程序中出现错误

标签 asp.net .net visual-studio-2010 configuration web-config

“/”应用程序中的服务器错误。

该程序被组策略阻止。如需了解更多信息,请联系您的系统管理员

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: This program is blocked by group policy. For more information, contact your system administrator

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: [Win32Exception (0x80004005): This program is blocked by group policy. For more information, contact your system administrator] [ExternalException (0x80004005): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\d7e8c5c7\64d2ef8e\12ln453k.cmdline".] System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +6537691 System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +115 Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +263 Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +473 Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyF romFileBatch(CompilerParameters options, String[] fileNames) +160 System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames) +23 System.Web.Compilation.AssemblyBuilder.Compile() +884 System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +9549320 System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +9872176 System.Web.Compilation.BuildManager.CompileGlobalAsax() +44 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +269

[HttpException (0x80004005): Cannot execute a program. The command being executed was     "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths     @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET     Files\root\d7e8c5c7\64d2ef8e\12ln453k.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) +530

[HttpException (0x80004005): Cannot execute a program. The command being executed was     "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths     @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET     Files\root\d7e8c5c7\64d2ef8e\12ln453k.cmdline".]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873784
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,     HttpContext context) +254

我的网站无法运行我无法理解问题所在 我调用他说这是我的最后..代码错误 谁能告诉我这个错误 当我输入 www..com 时,它就会上线

最佳答案

只需删除突出显示的部分:

enter image description here

关于asp.net - 网站无法运行 服务器/应用程序中出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19120327/

相关文章:

mysql - 我在 mysql 中遇到错误,例如命令 ="SELECT * FROM subjects WHERE Course LIKE (' %'+ ? + ' %')

c# - 如何在项目中使用 T4 自定义脚手架?

sql-server - sql server mdf 文件数据库附件

.net - count(*) 的 SQL 语句有问题

asp.net - log4net 不记录 ThreadContext

javascript - Jquery 函数在 ASP.NET 用户控件中没有被触发

c# - 获取所选下拉列表选项的值

.net - 是什么导致 Windows 防火墙阻止应用程序?

c# - 从 Python 运行 .NET COM 程序集。程序集 dll 的 Python 路径?

.net - 用于生成 .net 代理的优秀库