参照Log4net.dll后添加应用配置文件给工程,然后 在AssemblyInfo.cs 追加 [assembly: log4net.Config.DOMConfigurator(Watch=true)] 在AssemblyInfo.c 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交