I got an C# exe which writes log4net logs. If I run this exe directly, the logging works ok.
However, if I call the exe from a F# script (with extension fsx), I have the error
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" />
anyone can help? thanks a lot
You should insert configuration of this exe file to configuration file of your f# application or initialize logger in code. I am not sure that when you run f# script there are config file.
You can try to set config to configfile of your c# exe with code: