timedoctor - 2009/10/7 11:23:00
“/install”应用程序中的服务器错误。
路径“/install/App_GlobalResources/”映射到此应用程序外部的目录,这是不受支持的。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Web.HttpException: 路径“/install/App_GlobalResources/”映射到此应用程序外部的目录,这是不受支持的。
源错误:
| 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 |
堆栈跟踪:
| [HttpException (0x80004005): 路径“/install/App_GlobalResources/”映射到此应用程序外部的目录,这是不受支持的。] System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8810331 System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128 System.Web.Compilation.BuildManager.CompileResourcesDirectory() +31 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +304[HttpException (0x80004005): 路径“/install/App_GlobalResources/”映射到此应用程序外部的目录,这是不受支持的。] System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729[HttpException (0x80004005): 路径“/install/App_GlobalResources/”映射到此应用程序外部的目录,这是不受支持的。] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259 |
版本信息: Microsoft .NET Framework 版本:2.0.50727.3082; ASP.NET 版本:2.0.50727.3082
apple - 2009/10/7 11:31:00
非应用程序目录,IIS5的话直接把IIS中默认网站中路径设置为你网站目录就可以了
timedoctor - 2009/10/7 12:57:00
谢谢楼上的回答,改完又出现错误了。
=============================
“/install”应用程序中的服务器错误。
--------------------------------------------------------------------------------
配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
分析器错误消息: 未能加载类型“PageAdmin.UrlReWriteModule”。 (C:\Inetpub\wwwroot\web.config line 19)
源错误:
行 17: <system.web>
行 18: <httpModules>
行 19: <add type="PageAdmin.UrlReWriteModule" name="HttpModule" />
行 20: </httpModules>
行 21: <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" />
源文件: C:\Inetpub\wwwroot\web.config 行: 19
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3082; ASP.NET 版本:2.0.50727.3082
kiki - 2009/10/8 15:05:00
试试:
打开IIS设置,默认网站 --> 右键属性 --> ASP.NET --> 把ASP.NET的版本改为2.0 --> 保存