【问题标题】:how to make ASP.NET 1.1 web app working as child of asp.NET 2.0?如何使 ASP.NET 1.1 Web 应用程序作为 asp.NET 2.0 的子级工作?
【发布时间】: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 的网络应用程序下并且工作正常(在同一台服务器上)

如何解决这个问题?

【问题讨论】:

    标签: asp.net iis iis-7


    【解决方案1】:

    尝试从 1.1 应用程序 web.config 中删除属性 inheritInChildApplications,因为它似乎已在 .net 2.0 中引入。

    inheritInChildApplications="false"

    see msdn article here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-02-06
      • 1970-01-01
      • 2018-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多