I am still seeing this exception when trying to activate logging in azure IIS hosted setup.
NLog.NLogConfigurationException
Message=Exception occurred when loading configuration from F:\Projects\SLC\Database\SLC.AzureProject\csx\Release\roles\SLC.SupportRole\approot\bin\NLog.config
Source=NLog
StackTrace:
at NLog.Config.XmlLoggingConfiguration.Initialize(XmlReader reader, String fileName, Boolean ignoreErrors)
at NLog.Config.XmlLoggingConfiguration..ctor(String fileName)
at NLog.LogFactory.get_Configuration()
at NLog.LogFactory.GetLogger(LoggerCacheKey cacheKey)
at NLog.LogFactory.GetLogger(String name)
at NLog.LogManager.GetCurrentClassLogger()
at Raven.Web.Base.Helpers.CloudIISConfiguration..cctor() in f:\Projects\SLC\Database\Raven.Web.Base\Helpers\CloudIISConfiguration.cs:line 11
InnerException: System.ArgumentException
Message=Target cannot be found: 'HttpEndpoint'
Source=NLog
StackTrace:
at NLog.Config.Factory`2.CreateInstance(String name)
at NLog.Config.XmlLoggingConfiguration.ParseTargetsElement(NLogXmlElement targetsElement)
at NLog.Config.XmlLoggingConfiguration.ParseNLogElement(NLogXmlElement nlogElement, String baseDirectory)
at NLog.Config.XmlLoggingConfiguration.ParseTopLevel(NLogXmlElement content, String baseDirectory)
at NLog.Config.XmlLoggingConfiguration.Initialize(XmlReader reader, String fileName, Boolean ignoreErrors)
InnerException: