Hi ,
I'm probably just doing something a little silly.
I get a System.Configuration.ConfigurationErrorsException!
This is my config file:
<configSections>
<section name="qConfig" type="QuickBuild.QConfig , QuickBuild" />
</configSections>
<qConfig
PathToDevEnv="D:\Microsoft Visual Studio 8\Common7\IDE\devenv.exe"
ShellBuild="false"
ShellUpgrade="false"
/>
This is the code:
namespace QuickBuild
{
public class QConfig : ConfigurationSection
{
[ConfigurationProperty("PathToDevenv", IsRequired = true)]
public string PathToDevenv
{
get { return (string)base["PathToDevenv"]; }
}
[ConfigurationProperty("ShellBuild",IsRequired = true)]
public bool ShellBuild
{
get { return (bool)base["ShellBuild"]; }
}
[ConfigurationProperty("ShellUpgrade",IsRequired = true)]
public bool ShellUpgrade
{
get { return (bool)base["ShellUpgrade"]; }
}
}
}
And i get a *ConfigurationErrorsException* when i do this:
QConfig cfg = ConfigurationManager.GetSection("qConfig") as QConfig;
With:"An error occurred creating the configuration section handler for
qConfig: Could not load type 'QuickBuild.QConfig ' from assembly
'QuickBuild' "
I'm working with C# 2.0 under .NET 2.0
Thanks so much
Gideon