小编Kra*_*ngh的帖子

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

'/'应用程序中的服务器错误.

该程序被组策略阻止.有关更多信息,请与系统管理员联系

描述:执行当前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 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,

[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 …
Run Code Online (Sandbox Code Playgroud)

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

5
推荐指数
1
解决办法
3605
查看次数

SQL Query多个if else条件块

我创建了sql proc来从数据库中选择记录它成功执行但没有返回任何内容

任何人都可以告诉我在哪里做错了吗?

CREATE PROC [dbo].[bb_EmailSentStatus] 
 @type varchar
AS 
 SET NOCOUNT ON 
 SET XACT_ABORT ON  

 BEGIN TRAN


 IF (@type='pending')
 BEGIN
  SELECT [Mail_Track_Id], [FromName],[FromEmail],[ToName],[ToEmail],[ReplyTo],
         [Subject],[CreatedDate],[ModifiedDate],[Server_Msg],[FromSource] 
  FROM [dbo].[Mail_Track] 
  WHERE Active_Status=1 AND Sent_Status IS NULL
 END
 ELSE IF(@type='failed')
 BEGIN
  SELECT [Mail_Track_Id], [FromName],[FromEmail],[ToName],[ToEmail],[ReplyTo],
         [Subject],[CreatedDate],[ModifiedDate],[Server_Msg],[FromSource] 
  FROM [dbo].[Mail_Track] 
  WHERE Active_Status=1 AND Sent_Status = 0
 END
 ELSE IF(@type='success')
 BEGIN
  SELECT [Mail_Track_Id], [FromName],[FromEmail],[ToName],[ToEmail],[ReplyTo],
         [Subject],[CreatedDate],[ModifiedDate],[Server_Msg],[FromSource] 
  FROM [dbo].[Mail_Track] 
  WHERE Active_Status=1 AND Sent_Status = 1
 END
COMMIT
Run Code Online (Sandbox Code Playgroud)

t-sql database sql-server

-1
推荐指数
1
解决办法
95
查看次数