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.
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’
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:
- Click Start
- Click Run
- Type inetmgr (or open the IIS manager from the admin tools)
- Expand the server object
- Expand Default Websites
- Select your website, eg website.com
- Right click and go to Properties
- Select ASP.Net Tab
- ASP.Net version select version 2
If this option isn’t available make sure you have the dotnet framework 2.0 installed. Problem solved!