2011-10-04 77 views
0

我將所有本地主機應用程序從WinXP/IIS6機器遷移到Win7/IIS7.5機器。我從WinXP的wwwroot目錄複製了幾個文件夾到Win7的wwwroot。然後創建一個虛擬目錄並轉換爲應用程序。當我瀏覽這個應用程序,我得到的錯誤:IIS6到IIS7 - 根元素必須與引用文件的部分名稱'appSettings'

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: The root element must match the name of the section referencing the file, 'appSettings' 

Source Error: 

Line 1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
Line 2: <html xmlns="http://www.w3.org/1999/xhtml"> 
Line 3: <head> 
Line 4: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 


Source File: C:\inetpub\wwwroot\iisstart.htm Line: 2 

我錯過了什麼?

回答

1

此應用程序的默認應用程序池是.Net 4.0。將其更改爲v2.0的另一個應用程序池,錯誤消失。

相關問題