在类库中无法使用ConfigurationManager

需要先引用DLL文件:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.configuration.dll

然后才可以使用

System.Configuration.ConfigurationManager.AppSettings["SiteUrl"]

posted @ 2014-02-19 11:24  Seaurl  阅读(266)  评论(0编辑  收藏  举报