2014-02-06 38 views
0

我有2 ASP.NET Web應用程序,webapp2的是ASP.NET 2.0,webapp1是ASP.NET 1.1 IIS是Windows Server 2008的如何使ASP.NET 1.1 web應用程序作爲asp.net 2.0的子項工作?

我創建webapp2的一個網站上。對於asp.net 2.0

然後創建Web應用程序(添加應用程序)webapp1下webapp2的設置應用程序池,並設置applocation池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和託管管道模式古典, 然後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 

如果我設置的應用程序池Asp.net 2.0 webapp1,它是工作,但在某些時候我得到了以下錯誤:

此前,webapp1是下ASP其他網絡應用。淨1.1和工作正常(在同一臺服務器上)

如何解決此問題?

回答

0

嘗試從1.1應用程序web.config中刪除屬性inheritInChildApplications,因爲它似乎已在.net 2.0中引入。

inheritInChildApplications = 「假」

see msdn article here

相關問題