我在服务器上安装好web程序安装包,访问网站的时候出现错误
请问这是什么原因啊?“/Setup1”应用程序中的服务器错误。
--------------------------------------------------------------------------------
应用程序已预编译,因此不允许使用目录“/Setup1/App_Code/”。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Web.HttpException: 应用程序已预编译,因此不允许使用目录“/Setup1/App_Code/”。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[HttpException (0x80004005): 应用程序已预编译,因此不允许使用目录“/Setup1/App_Code/”。]
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +3450610
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
System.Web.Compilation.BuildManager.CompileCodeDirectories() +525
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +448
[HttpException (0x80004005): 应用程序已预编译,因此不允许使用目录“/Setup1/App_Code/”。]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): 应用程序已预编译,因此不允许使用目录“/Setup1/App_Code/”。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426855
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149
--------------------编程问答-------------------- 删除 bin目录
删除 PreComp ..config --------------------编程问答-------------------- 谢谢,可以了,能说一下原因吗?
补充:.NET技术 , ASP.NET