网站不工作服务器错误/应用程序

时间:2013-10-01 15:34:07

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

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

此程序被组策略阻止。有关详细信息,请与系统管理员联系

  

说明:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

     

异常详细信息:System.ComponentModel.Win32Exception:此程序被组策略阻止。有关详细信息,请与系统管理员联系

     

来源错误:   在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。

     

堆栈跟踪:   [Win32Exception(0x80004005):此程序被组策略阻止。有关更多信息,请联系您的系统管理员]      [ExternalException(0x80004005):无法执行程序。正在执行的命令是“C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ csc.exe”/ noconfig / fullpaths @“C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET文件\ 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选项,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

时,这将在线

2 个答案:

答案 0 :(得分:6)

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

enter image description here

答案 1 :(得分:3)

<system.web>中添加此标记:

<trust level="Full"/>

评论编译器标签:

<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=\&quot;Web\&quot; /optionInfer+" />
    </compilers>-->
</system.codedom>