(Apologizing for cross-posting...)
I am working in a Dynamics CRM 2011on-premises C# .Net environment. This is
the first time I have used log4net so bear with me, please...
My app.config entry for log4net is:
In the program I have coded:
private static
Thanks for responding. The log4net reference *Copy Local* property is marked
True.
--
View this message in context:
http://apache-logging.6191.n7.nabble.com/Logging-works-in-VS-but-not-when-deployed-tp54506p54512.html
Sent from the Log4net - Users mailing list archive at Nabble.com.
Thanks for the suggestion, Pascal. I did that and this is what was written to
the Console:
log4net: log4net assembly [log4net, Version=1.2.13.0, Culture=neutral,
PublicKey
Token=669e0ddf0bb1aa2a]. Loaded from [C:\Program Files
(x86)\CE\CRMEDIFileGenera
tor\log4net.dll]. (.NET Runtime [4.0.30319.18
Ok, why is it found when run in the IDE (VS 2010) but not when deployed? And
what needs to be done to correct this?
--
View this message in context:
http://apache-logging.6191.n7.nabble.com/Logging-works-in-VS-but-not-when-deployed-tp54506p54516.html
Sent from the Log4net - Users mailing list
The solution was to move the [assembly: log4net.Config.XmlConfigurator]
declarative to the AssemblyInfo.cs file and to not point to any particular
config file.
Thanks to all who responded
--
View this message in context:
http://apache-logging.6191.n7.nabble.com/Logging-works-in-VS-but-not-
Joseph, thanks for the clue. You were right: the Configurator was looking for
"app.config" and not the deployed config file name.
--
View this message in context:
http://apache-logging.6191.n7.nabble.com/Logging-works-in-VS-but-not-when-deployed-tp54506p54519.html
Sent from the Log4net - Users