I created a custom System.Configuration.ConfigurationSection , which I store in a separate configuration file and include it in my web.config via 'configSource="MyCustomConfigFile.config"'
I also created an .xsd schema for a custom configuration file to add some useful properties, such as checking the / intellisense schema, which works well.
When I try to start an application (which is hosted in IIS8, .NET 4.5.1), I get the following error:
Configuration Error Description: An error occurred while processing the configuration file required to service this request. Review the specific error data below and modify the configuration file.
Parser error message: unrecognized attribute "xmlns". Note that attribute names are case sensitive.
Source Error:
Line 1: <? xml version = "1.0" encoding = "utf-8"? >
Line 2: <identityServer xmlns = "http: //myCustomNamespace.xsd">
Honestly, I am surprised - can anyone tell me how to fix this without deleting xmlns so that I can maintain the / intellisense schema validation?
source share