BUG: Configuration Section Tags Are Not Recognized (311091)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- Microsoft ASP.NET (included with the .NET Framework 1.1)
This article was previously published under Q311091 SYMPTOMS
If you add configuration section tags before the <configSections> configuration section in the Machine.config file, you may receive the following error message when you run your ASP.NET applications:
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.
Parse Error Message: Unrecognized configuration section 'tagname'
CAUSE
The <configSections> section in the Machine.config file defines the configuration sections that can be used for the given configuration hierarchy within an application. If you use a configuration section tag before the <configSections> section (for example, the <runtime> or <appSettings> tag), you receive the above-mentioned error message because the configuration section handler has not yet been loaded.
This problem can also occur if the configuration section does not exist or if the configuration section handler is not defined.
RESOLUTION
To work around this problem, add the configuration section tag after the <configSections> section.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES
For an overview of configuration files and predefined configuration section handlers that are included with the .NET Framework, refer to the following topic in the Microsoft .NET Framework Software Development Kit (SDK) documentation:
Modification Type: | Major | Last Reviewed: | 3/26/2003 |
---|
Keywords: | kbbug kbConfig kberrmsg kbpending kbreadme KB311091 |
---|
|