最近使用MySQL,在连接数据库的时候抛出异常,然后就连不上.最后没法,把它的源码下来跟踪,到这里,在获取服务器地址的时候抛出此异常,但是很是郁闷,这个异常在msdn里面都没记录,实在是郁闷至极.我想说的是:IPAddress关Configuration鸟事?        private IPHostEntry ParseIPAddress(string hostname)
        {
            IPHostEntry ipHE = null;
#if !CF
            IPAddress addr;
            addr = IPAddress.None;
            if (IPAddress.TryParse(hostname, out addr))
            {
                ipHE = new IPHostEntry();
                ipHE.AddressList = new IPAddress[1];
                ipHE.AddressList[0] = addr;
            }
#endif
            return ipHE;
        }
IPAddress.TryParse("127.0.0.1", out addr)
A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll
'IPAddress.TryParse(hostname, out addr)' threw an exception of type 'System.Configuration.ConfigurationErrorsException'
    base {System.Configuration.ConfigurationException}: {"配置系统未能初始化"}
    _errors: null
    _firstFilename: null
    _firstLine: 0
    BareMessage: "配置系统未能初始化"
    Errors: {System.Configuration.ConfigurationException[1]}
    ErrorsGeneric: {System.Configuration.ConfigurationException[1]}
    Filename: null
    Line: 0
    Message: "配置系统未能初始化"