摘要: 不能用 new FileStream("xx",FileMode.Read);//权限不足无法读取要用 File.OpenRead("xx"); 阅读全文
posted @ 2010-12-31 14:29 sweetjian 阅读(459) 评论(0) 推荐(0)
摘要: Configuration objConfig = ConfigurationManager.OpenExeConfiguration(System.Windows.Forms.Application.StartupPath + @"\TestConfig.exe");//需要有TestConfig.exe文件 ConnectionStringsSection objAppsettings = null; objAppsettings = (ConnectionStringsSection)objConfig.GetSection("connectionStrings"); foreach ( 阅读全文
posted @ 2010-12-31 09:44 sweetjian 阅读(256) 评论(0) 推荐(0)