如何在运行预编译的Web应用程序时解决以下问题?
Server Error in '/CRM' Application.
The directory '/CRM/App_Code/' is not allowed because the application is precompiled.
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.Web.HttpException: The directory '/CRM/App_Code/' is not allowed because the application is precompiled.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the …Run Code Online (Sandbox Code Playgroud) 这是我的第一个问题,如果我有一些语法错误,请向我道歉.
问题描述:
我在基于IIS 7(Windows Server 2008)和SQL Server 2008 R2上运行的基于32位MVC 5的CRUD系统安装到多个服务器中,自2015年8月起提供公司内部网管理服务.几个月来,所有这些系统都运行顺利,没有任何问题.但是,昨天我发现我无法使用此消息访问172.16.1.101服务器上的站点根页面:
> Server Error in '/' Application.
> [Win32Exception (0x80004005): Access is denied]
>[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\-(random 8-digit hex)-\-(random 8-digit hex)-\-(random 8-char base64).cmdline".]
System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +3365
System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +8591876
Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String …Run Code Online (Sandbox Code Playgroud) 我想在我们的网站上打开一个文档文件。为此,我编写了以下代码。
try
{
Process proc = new Process();
proc.StartInfo = new ProcessStartInfo(Server.MapPath("~/Quatation/PREMIUMQUOTATION1.doc"));
proc.Start();
}
catch (WebException we)
{
}
Run Code Online (Sandbox Code Playgroud)
它在本地运行得非常好,但是 Web 服务器上的 Web 它给了我一个错误,例如
System.ComponentModel.Win32Exception:访问被拒绝?
请建议,我该怎么办?