这个怎么表达呢,我用代码来表示吧,其中一个config.cn文件中的代码如下
        static public Config ConfigSection
        {
            get
            {
                Config config = (Config)System.Configuration.ConfigurationManager.GetSection("setting");
                if (config == null)
                {
                    if (System.Web.HttpContext.Current == null)
                        throw new ApplicationException("The main forum control is not design-time compatible due to it's complexity. Please load the individual page controls to modify the forum.");
                    else
                        throw new ApplicationException("Failed to get configuration from Web.config.");
                }
                return config;
            }
        }
根据这个我去加载setting。config文件里面的内容,setting。config的内容如下:
<?xml version="1.0" encoding="utf-8"?>
<setting>
  <version>奇盛贸易通 v1.0</version>
  <system>WMB</system>
  <connstr>Data Source=127.0.0.1;Initial Catalog=aaaaa;Integrated Security=True;timeout=90</connstr>
    <!--ksn_taide  KSN_WMB-->
  <connstr2>user id=sa;pwd=xxxx;data source=xxxxx,xxx;initial catalog=bbbbb;timeout=90</connstr2>
  <DataName>KSN_WMB</DataName>
  <shotcuts>style\images\shotcuts</shotcuts>
  <webdisk_dir>webdisk</webdisk_dir>
  <webdisk_extlimit>txt,jpg,gif,pdf,doc,rar,xls,zip,swf,ppt</webdisk_extlimit>
  <mail_programdir>/mail/</mail_programdir>
  <workflow_type_payapp>1</workflow_type_payapp>
  <workflow_system_salesorder_check>110</workflow_system_salesorder_check>
  <chsspell>珑|L</chsspell>
  <CONTROL_SERVER>http://192.168.1.110:300</CONTROL_SERVER>
  <APP_ROOT_PATH>http://192.168.1.110:409</APP_ROOT_PATH>
</setting>
之前发布的版本读取的时候是没有问题的,可是目前我编译好后,挂载到IIS上总归会出现“无法将类型为“System.Int32”的对象强制转换为类型“KSN.DBUtility.Config”。 
”的错误,错误代码就是  Config config = (Config)System.Configuration.ConfigurationManager.GetSection("setting");
   这句话,谁能给出个解决方法,在线求答案