我有一个写log4net日志的C#可执行文件。如果我直接运行该可执行文件,记录日志可以正常工作。 然而,如果我从一个F#脚本(扩展名为fsx)中调用该可执行文件,则会出现错误。
log4net:ERROR Failed to find configuration section 'log4net' in the application'
s .config file. Check your .config file for the <log4net> and <configSections> e
lements. The configuration section should look like: <section name="log4net" typ
e="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
有人可以帮忙吗?非常感谢。