its in the root dir, and it loads the web.config file and finds the root element but after that it comes back as null, if I throw just some random XML file at it, it works fine. Just when I load up the web.config file. just so you can see what is loading up,
<configuration xmlns="
http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<section name="BaseProvider" type="BaseProvider.BaseProviderSection, BaseProvider"/>
</configSections>
<BaseProvider default="Extended Provider">
<providers>
<add name="Plugin Manager"
Enabled="true"
type="PluginManager.Manager, PluginManager" />
<add name="Extended Provider"
Enabled="false"
type="ExtendedProvider.ExtendedProvider, ExtendedProvider" />
<add name="Extended Provider 2"
Enabled="true"
type="ExtendedProvider2.ExtendedProvider, ExtendedProvider2" />
<add name="Extended Provider 3"
Enabled="false"
type="ExtendedProvider3.FunProvider, ExtendedProvider3" />
</providers>
</BaseProvider>
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="true"/>
<webParts enableExport="true"/>
</system.web>
</configuration>
I am sorry for the long bit there, but this same xml in an app.config works just fine with the code in my original post, aside from the web related sections.