Friday, May 8, 2009

[ASP.NET] Configuration Error : Unrecognized configuration section 'connectionStrings'

今天同事去機房移機器,將網站上的東西搬到新做的機器上,搬好之後我上去設定,發現這機器還真是新啊,連IIS都沒有qq,灌好IIS跟.NET Framework後,發現網頁會出現下面的這個錯誤訊息。
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 configuration section 'connectionStrings'


解決方式很簡單,就是把ASP.NET設定調成正確的就對了,Windows Server 2003上的IIS 6預設的ASP.NET版本是1.0,所以會產生這個錯誤,灌好.NET Framework後,重開Computer Management(不然會沒有ASP.NET的Tab),將版本選到2.0就好了。



IIS

No comments:

Post a Comment