【发布时间】:2014-02-06 16:23:12
【问题描述】:
我有 2 个 ASP.NET Web 应用,Webapp2 是 ASP.NET 2.0,webapp1 是 ASP.NET 1.1 IIS 在 windows server 2008 上。
我为 webapp2 创建了一个网站。为 asp.net 2.0 设置应用程序池
然后在webapp2下创建web app(add application) webapp1并将applocation pool设置为Asp.net 1.1
将应用程序池设置为 Asp.NET 1.1,将托管管道模式设置为集成, 然后 webapp1 不工作。错误如下:
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
将应用程序池设置为 Asp.NET 1.1,将托管管道模式设置为 Classic, 然后 webapp1 不工作。错误如下:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'inheritInChildApplications'.
Source Error:
Line 1: <?xml version="1.0" encoding="utf-8" ?>
Line 2: <configuration>
Line 3: <location path="" inheritInChildApplications="false" >
Line 4: <system.web>
Line 5: <!-- DYNAMIC DEBUG COMPILATION
如果我为 webapp1 设置应用程序池 Asp.net 2.0,它可以工作,但在某些时候出现以下错误:
以前,webapp1 位于另一个用于 asp.net 1.1 的网络应用程序下并且工作正常(在同一台服务器上)
如何解决这个问题?
【问题讨论】: