Unrecognized configuration section ‘connectionStrings’

A few weeks back I was working on setting up an ASP application which I knew very little about. Having setup IIS I encountered the follow error message:

Server Error in ‘/’ Application.

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’

Source Error:

Line 20:

Line 21: </appSettings>

Line 22: <connectionStrings>


Source File: D:\home\Default\website.com\htdocs\web.config Line: 22

Version Information: Microsoft .NET Framework Version:1.1.4322.2379; ASP.NET Version:1.1.4322.2379

Well, it turns out this is what happens if you try and run an ASP.NET 2.0 application using ASP.NET 1.1. So just follow these quick steps to cure the problem:

  1. Click Start
  2. Click Run
  3. Type inetmgr (or open the IIS manager from the admin tools)
  4. Expand the server object
  5. Expand Default Websites
  6. Select your website, eg website.com
  7. Right click and go to Properties
  8. Select ASP.Net Tab
  9. ASP.Net version select version 2

If this option isn’t available make sure you have the dotnet framework 2.0 installed. Problem solved!

Leave a Reply

Your email address will not be published. Required fields are marked *

4 × 1 =