vs2012 单元测试中Common.Logging抛异常的解决方案
2016-03-22 18:09
267 查看
在vs2012 单元测试中,调用Common.Logging时,在执行初始化日志时
ILog Logger = LogManager.GetCurrentClassLogger(); 抛异常.
异常信息如下:
Unable to create instance of type Common.Logging.NLog.NLogLoggerFactoryAdapter. Possible explanation is lack of zero arg and single arg NameValueCollection constructors
解决方法:
该问题由工具本身bug导致,需要跟新VS2012.4.iso的一个升级包修复,该包邮2.34G
ILog Logger = LogManager.GetCurrentClassLogger(); 抛异常.
异常信息如下:
Unable to create instance of type Common.Logging.NLog.NLogLoggerFactoryAdapter. Possible explanation is lack of zero arg and single arg NameValueCollection constructors
解决方法:
该问题由工具本身bug导致,需要跟新VS2012.4.iso的一个升级包修复,该包邮2.34G
相关文章推荐
- 【matlab】:matlab画图
- 一个神奇的网站(快快乐乐写时序图)
- mysql alter 语句用法,添加、修改、删除字段等
- 我的git常用命令
- 初识MongoDB
- MySQL复制表结构,表数据
- bower 简易说明
- Python小工具--删除svn文件
- sed的基础应用
- Nginx下支持ThinkPHP的Pathinfo和URl Rewrite模式
- 一个方便集成的 Android 右滑返回上级 控件
- x&(x-1)和x&(-x)的讲解
- MANIFEST.MF文件全面解析
- 如何安装rockmongo(gui for mongodb)
- DB2活动日志满的原因、分析、处理与避免
- Linux下安装Oracle11g中文乱码,DISPLAY未通过
- iOS开发: 做真机测试时 遇到的 bitcode 的问题
- 适配器模式
- org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class ‘XXX’
- PHPEXCEL在thinkphp中封装成类使用