Exception when adding log4net config

血红的双手。 提交于 2019-11-29 06:05:51

The issue was that I had the <startup> xml node in the app.config file at the start rather than the end of the file. It needs to be the last thing in the app.config file.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  // lots of other stuff here...
  <startup> 
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
  </startup>
</configuration>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!